Closed Bug 2080283 Opened 1 month ago Closed 9 days ago

Convert browser-allTabsMenu.js to a module

Categories

(Firefox :: Tabbed Browser, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(2 external files)

browser/components/tabbrowser/content/browser-allTabsMenu.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

The command handler reads PanelUI as the window global instead of off target.documentGlobal, since the module's global is the window that holds the panel. The unused NimbusFeatures getter goes away, and TabsPanel's className becomes optional, since no caller passes it.

See Also: → 2095705
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8dbac0eebc70 https://hg.mozilla.org/integration/autoland/rev/c7bcae2fafbc Declare the browser window's PanelUI, isElementVisible and FirefoxViewHandler.openTab for TypeScript. r=Standard8 https://github.com/mozilla-firefox/firefox/commit/3641a06a9ac2 https://hg.mozilla.org/integration/autoland/rev/96991c6d5342 Turn the all tabs menu script into a module that browser.js loads lazily. r=niklas,tabbrowser-reviewers,frontend-codestyle-reviewers,mossop
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: