Import the system modules that the tabbrowser window modules use as globals
Categories
(Firefox :: Tabbed Browser, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 2 open bugs)
Details
Attachments
(1 external file)
content/tab.mjs, content/tabgroup.mjs, content/tabs.mjs and content/tabsplitview.mjs use system modules such as SessionStore, CustomizableUI, XPCOMUtils and the Tabbrowser class as bare globals, relying on browser.js having imported them into the window. They should import what they use, as the address bar's window modules already do.
The tabbrowser project is the only one that includes tools/@types/browser-window.d.ts, so once these modules import their system modules, that file can drop its system-module declarations and keep only the globals the window's own scripts define.
| Assignee | ||
Comment 1•1 month ago
|
||
tab.mjs and tabs.mjs move from the browser-window block in eslint-file-globals.config.mjs to a /* global */ comment, as tabgroup.mjs and tabsplitview.mjs already have, since that block declares XPCOMUtils and Tabbrowser and the new local bindings would trip no-shadow.
Updated•1 month ago
|
Updated•20 days ago
|
Description
•