Closed Bug 2080284 Opened 1 month ago Closed 23 days ago

Convert status-panel.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 3 open bugs)

Details

Attachments

(2 external files)

browser/components/tabbrowser/content/status-panel.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 panel and _labelElement getters replace themselves with Object.defineProperty, because tsc rejects deleting and assigning a getter-only property.

Blocks: 2090000
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b792d5952b38 https://hg.mozilla.org/integration/autoland/rev/977cfe80af12 Declare the browser window's XULBrowserWindow and MousePosTracker for TypeScript. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Blocks: 2092504
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c7ef9706b55d https://hg.mozilla.org/integration/autoland/rev/5e1bc97a77ed Turn the status panel script into a module that browser.js loads lazily. r=tabbrowser-reviewers,frontend-codestyle-reviewers,niklas
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: