Add a stub Wrexham AFC widget to New Tab hidden and disabled by default
Categories
(Firefox :: Widgets, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley, NeedInfo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [hnt][hnt-wattle])
Attachments
(1 external file)
Add a Wrexham AFC widget to New Tab as a regular widget registry entry, to build out under bug 2087516. It is off and hidden by default; the main audience is the Wrexham repack, which can turn it on with default prefs via distribution.ini.
It adds:
- A
wrexhamAFCentry inWIDGET_REGISTRY, drawn byMozWidgetCard, with the club crest (the existing tippytop image) as its header icon. - A menu with "View" (Matches, Table or Fixtures, stored in
widgets.wrexhamAFC.view) and "Wallpapers" (opens the Customize panel). widgets.wrexhamAFC.enabled,widgets.system.wrexhamAFC.enabled,widgets.wrexhamAFC.sizeandwidgets.wrexhamAFC.viewprefs. Both enabled prefs default to false, so the widget is neither shown nor offered in the Customize panel until something enables them, such as the repack'sdistribution.ini.- Its strings live in
newtabPreview.ftlfor now, so they are not yet exposed to localizers. The widget name may later need a Welsh translation ("CPD Wrecsam"). - It has no document to frame yet, so its card shows a placeholder. The endpoint can later be set as the entry's
srcor throughtrainhopConfig.widgetWrexhamAFC.src.
Everything lives under browser/extensions/newtab/ and browser/locales-preview/, so it can ship with New Tab train-hops. I initially planned on using the WebExtension API with a built-in addon, but considering the aggressive timeline, it seems like being able to trainhop changes to the widget shell would be wise, at least for now. There's a future where this gets spun out into a built-in addon (and then later, spun out as a normal WebExtension once the widget WebExtension API matures and becomes generally available).
| Assignee | ||
Updated•17 days ago
|
Updated•17 days ago
|
| Assignee | ||
Comment 1•17 days ago
|
||
Updated•17 days ago
|
Comment 4•14 days ago
|
||
Backed out for causing failure @ browser_wrexhamafc_widget.js
Comment 7•14 days ago
|
||
Backed out for causing bc failures @ browser_wrexhamafc_widget.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/80951c45b4b81e41e3e1eba34348c9c61ef509c4
Comment 9•13 days ago
|
||
| bugherder | ||
Updated•7 days ago
|
Description
•