Closed Bug 2080287 Opened 1 month ago Closed 19 days ago

Convert tabgroup-menu.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 1 open bug)

Details

Attachments

(4 external files)

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

Blocks: 2080403

browser.js defines ContentSharingUtils on the window with a module getter for the same module, and the local import would shadow that global under no-shadow once the file is renamed to .mjs.

Behavior-neutral: every activeGroup assignment passes a group or null, #createRow never read the index it was passed, and the suggestion checkbox's change listener reads the checkbox it was added to rather than e.target.

Attachment #9657186 - Attachment description: WIP: Bug 2080287 - Declare the browser window globals that the tab group menu reads for TypeScript. r?Standard8 → WIP: Bug 2080287 - Declare the browser window's openTrustedLinkIn for TypeScript. r?Standard8
Attachment #9657187 - Attachment description: WIP: Bug 2080287 - Use the browser window's ContentSharingUtils in the tab group menu. r?#tabbrowser-reviewers → WIP: Bug 2080287 - Load ContentSharingUtils through the tab group menu's lazy module getters. r?#tabbrowser-reviewers
Assignee: nobody → dao+bmo
Attachment #9657186 - Attachment description: WIP: Bug 2080287 - Declare the browser window's openTrustedLinkIn for TypeScript. r?Standard8 → Bug 2080287 - Declare the browser window's openTrustedLinkIn for TypeScript. r?Standard8
Status: NEW → ASSIGNED
Attachment #9657187 - Attachment description: WIP: Bug 2080287 - Load ContentSharingUtils through the tab group menu's lazy module getters. r?#tabbrowser-reviewers → Bug 2080287 - Load ContentSharingUtils through the tab group menu's lazy module getters. r?#tabbrowser-reviewers
Attachment #9657188 - Attachment description: WIP: Bug 2080287 - Type the tab group menu's preference getters, panel, buttons and suggestion checkbox. r?#tabbrowser-reviewers → Bug 2080287 - Type the tab group menu's preference getters, panel, buttons and suggestion checkbox. r?#tabbrowser-reviewers
Attachment #9657189 - Attachment description: WIP: Bug 2080287 - Rename the tab group menu script to .mjs (no functional change). r?#tabbrowser-reviewers → Bug 2080287 - Rename the tab group menu script to .mjs (no functional change). r?#tabbrowser-reviewers
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4af903c06820 https://hg.mozilla.org/integration/autoland/rev/dcd0b521fbde Declare the browser window's openTrustedLinkIn for TypeScript. r=Standard8 https://github.com/mozilla-firefox/firefox/commit/5c0d00b59b66 https://hg.mozilla.org/integration/autoland/rev/ba9acc1d41b8 Load ContentSharingUtils through the tab group menu's lazy module getters. r=tabbrowser-reviewers,kcochrane https://github.com/mozilla-firefox/firefox/commit/8b5928a14dbd https://hg.mozilla.org/integration/autoland/rev/9b9acd6edd53 Type the tab group menu's preference getters, panel, buttons and suggestion checkbox. r=tabbrowser-reviewers,kcochrane https://github.com/mozilla-firefox/firefox/commit/0e064a0f3eb9 https://hg.mozilla.org/integration/autoland/rev/31f51460221b Rename the tab group menu script to .mjs (no functional change). r=tabbrowser-reviewers,kcochrane
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: