Closed Bug 2082766 Opened 1 month ago Closed 25 days ago

Import the system modules that the tabbrowser window modules use as globals

Categories

(Firefox :: Tabbed Browser, task)

task

Tracking

()

RESOLVED FIXED
161 Branch
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.

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.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Blocks: 2082780
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7bd737fa328b https://hg.mozilla.org/integration/autoland/rev/52e6ded204e4 Import the system modules that the tabbrowser window modules use as globals (no functional change). r=tabbrowser-reviewers,frontend-codestyle-reviewers,kcochrane
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: