Closed
Bug 2080285
Opened 1 month ago
Closed 13 days ago
Convert tab-bar-visibility.js to a module
Categories
(Firefox :: Tabbed Browser, task)
Firefox
Tabbed Browser
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 | ||
Comment 1•25 days ago
|
||
Updated•25 days ago
|
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•25 days ago
|
||
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.
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
| Assignee | ||
Updated•24 days ago
|
Keywords: leave-open
Comment 4•23 days ago
|
||
| bugherder | ||
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
Comment 6•13 days ago
|
||
| bugherder | ||
| Assignee | ||
Updated•13 days ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
status-firefox162:
--- → fixed
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Updated•4 days ago
|
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in
before you can comment on or make changes to this bug.
Description
•