Add `WidgetManager` singleton
Categories
(Firefox :: Widgets, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: fchasen, Assigned: fchasen)
References
(Blocks 1 open bug)
Details
(Whiteboard: [hnt][hnt-wattle])
Attachments
(1 external file)
Need to add a new WidgetRegistry class with the following stub methods:
-
register(descriptorOrArray) -
unregister(idOrArray)has(id)anddescribe(id), plusinit()anduninit(). -
has(id) -
describe(id) -
initanduninit
Init should be called in the browser-before-ui-startup category
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
- Adds a
WidgetManagersingleton that stores one widget per extension id. - Emits "change" at init and on register and unregister with the IDs of the updated widgets.
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
Going with WidgetManager to avoid conflicts with the existing WidgetsRegistry
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Comment 6•1 month ago
|
||
Backed out for causing for causing bc tests failures at moz-widget-header
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | browser/base/content/test/browser-static/browser_all_files_referenced.js | checkAllTheFiles - file only referenced from unreferenced files: chrome://browser/content/widgets/moz-widget-header.css referenced from chrome://browser/content/widgets/moz-widget-header.mjs
Comment 8•1 month ago
|
||
Backed out for causing mass failures @nsContentSecurityUtils.cpp.
| Assignee | ||
Comment 9•1 month ago
|
||
Thanks, sorry for not catching that. I'll need to update the frame-src allowlist like we did for the crossword.
| Assignee | ||
Comment 10•1 month ago
|
||
Also updating to dynamically import moz-widget.
Comment 11•1 month ago
|
||
Comment 12•1 month ago
|
||
Backed out for causing high frequency leaks.
Backout link: https://hg.mozilla.org/integration/autoland/rev/1d2637a051ec
Failure log: https://treeherder.mozilla.org/logviewer?job_id=599939467&repo=autoland&task=AfJdJrp3RhKbMitWQMyPdw.0&lineNumber=2532
Comment 13•1 month ago
|
||
Comment 14•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
| Assignee | ||
Updated•24 days ago
|
Description
•