Closed Bug 2080282 Opened 1 month ago Closed 9 days ago

Convert tab-context-menu.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/tab-context-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.

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

String(userContextId) records the same extra the number did, since WebIDL converts it to a string.

Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4ea6d3103c13 https://hg.mozilla.org/integration/autoland/rev/0a4f1a1b458f Declare the browser window's gSync.updateTabContextMenu, createUserContextMenu and showFullScreenViewContextMenuItems for TypeScript. r=Standard8 https://github.com/mozilla-firefox/firefox/commit/fd2cab63aa83 https://hg.mozilla.org/integration/autoland/rev/c899b4078bb3 Turn the tab context 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: