Closed Bug 2080279 Opened 1 month ago Closed 4 days ago

Convert browser-fullZoom.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

(3 external files)

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

browser.js creates the instance on first access rather than at delayed startup because onLocationChange can reach FullZoom before then, so the BrowserComponents.manifest entries name browser.js#FullZoom.

The content pref callbacks gain empty handleResult and handleError methods to satisfy nsIContentPrefCallback2's type; ContentPrefUtils' safeCallback skips a method the callback lacks, so this is behavior-neutral.

Attachment #9691673 - Attachment description: Bug 2080279 - Turn the site-specific zoom script into a system module that browser.js instantiates per window. r?#tabbrowser-reviewers,#frontend-codestyle-reviewers,niklas → Bug 2080279 - Turn the site-specific zoom script into a system module that browser.js instantiates per window. r?#tabbrowser-reviewers,#frontend-codestyle-reviewers
Attachment #9691673 - Attachment description: Bug 2080279 - Turn the site-specific zoom script into a system module that browser.js instantiates per window. r?#tabbrowser-reviewers,#frontend-codestyle-reviewers → Bug 2080279 - Turn the site-specific zoom script into a system module that browser.js instantiates per window. r?#tabbrowser-reviewers,#frontend-codestyle-reviewers,niklas
Blocks: 2098608
Keywords: leave-open
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/18e13d3810a5 https://hg.mozilla.org/integration/autoland/rev/f91171e82373 Declare the browser window's ZoomManager for TypeScript. r=Standard8 https://github.com/mozilla-firefox/firefox/commit/b4b42d4463f2 https://hg.mozilla.org/integration/autoland/rev/0708fcf44b7c Turn the site-specific zoom script into a system module that browser.js instantiates per window. r=tabbrowser-reviewers,frontend-codestyle-reviewers,nsharpley
Keywords: leave-open
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/50e83f95d6de https://hg.mozilla.org/integration/autoland/rev/ba008cee2ab7 Let BrowserComponents.manifest initialize FullZoom from its module. r=tabbrowser-reviewers,nsharpley
Status: ASSIGNED → RESOLVED
Closed: 4 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: