Closed Bug 2080285 Opened 1 month ago Closed 13 days ago

Convert tab-bar-visibility.js to a module

Categories

(Firefox :: Tabbed Browser, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 3 open bugs)

Details

Attachments

(2 external files)

browser/components/tabbrowser/content/tab-bar-visibility.js is loaded into the browser window with Services.scriptloader.loadSubScript, so the tabbrowser TypeScript project can't check it. Convert it to a module loaded with { global: "current" }, the way bug 2066073 did for tabgroup.js and tabsplitview.js. The tsconfig's content/*.mjs include will then pick it up.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED

TabBarVisibility now loads on first access, from browser-init.js's onBeforeInitialXULLayout, instead of at startup; this is the first browser-window use of defineESModuleGetters with { global: "current" }, and each window gets its own instance.

Blocks: 2090000
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7d0d599c96a8 https://hg.mozilla.org/integration/autoland/rev/c6c87091f775 Declare the browser window's gNavToolbox and CustomTitlebar.allowedBy for TypeScript. r=Standard8
Keywords: leave-open
Blocks: 2092505
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/85d889019387 https://hg.mozilla.org/integration/autoland/rev/afb014c94ed6 Turn the tab bar visibility script into a module that browser.js loads lazily. r=tabbrowser-reviewers,frontend-codestyle-reviewers,niklas
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: