Type-check the tab strip's element modules and the files excluded from the tabbrowser tsconfig
Categories
(Firefox :: Tabbed Browser, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(20 external files)
The tabbrowser's tsconfig.json includes only *.sys.mjs and excludes GroupsList.sys.mjs, SmartTabGrouping.sys.mjs and TabsList.sys.mjs. The element modules under content/ (tab.mjs, tabs.mjs, tabgroup.mjs, tabsplitview.mjs) enter the project only through types/elements.ts, so their own code goes unchecked, and tab-hover-preview.mjs, tab-groups-list.mjs and opentabs-splitview.mjs are in no project.
This includes content/*.mjs, declares the chrome window globals these modules read (gBrowser and others), moves the remaining lazy imports to declareLazy so they stop typing as any, and fixes the errors until the tsconfig has no exclude list.
The .js window scripts under content/ stay unchecked until they become modules.
| Assignee | ||
Comment 1•2 months ago
|
||
GroupsList's row builder receives open groups as tab group elements, which have no saved property, and saved groups as state objects that always have saved: true, so checking !isOpen instead is behavior-neutral.
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 3•2 months ago
|
||
declareLazy types a preference by its default, so the four AsyncTabSwitcher preferences that had none take the value browser/app/profile/firefox.js sets.
| Assignee | ||
Comment 4•2 months ago
|
||
declareLazy types a preference by its default, so the three SmartTabGrouping preferences that had none take the value browser/app/profile/firefox.js sets.
| Assignee | ||
Comment 5•2 months ago
|
||
A project that includes the file makes the globals visible to its system modules too; ESLint's no-undef still rejects a bare gBrowser there.
| Assignee | ||
Comment 6•2 months ago
|
||
| Assignee | ||
Comment 7•2 months ago
|
||
| Assignee | ||
Comment 8•2 months ago
|
||
Object.hasOwn replaces the in check on _lastAccessed, which tsc narrows to never; nothing on the tab's prototype chain defines _lastAccessed, so the two agree.
| Assignee | ||
Comment 9•2 months ago
|
||
Tabbrowser.isTab compares tagName where the child filters called matches("tab"); the two agree for the group's XUL children.
| Assignee | ||
Comment 10•2 months ago
|
||
| Assignee | ||
Comment 11•2 months ago
|
||
| Assignee | ||
Comment 12•2 months ago
|
||
| Assignee | ||
Comment 13•2 months ago
|
||
| Assignee | ||
Comment 14•2 months ago
|
||
The appendChild and insertBefore overrides now return the inserted node, as Node's do; no caller reads the result.
| Assignee | ||
Comment 15•2 months ago
|
||
| Assignee | ||
Comment 16•2 months ago
|
||
| Assignee | ||
Comment 17•2 months ago
|
||
| Assignee | ||
Comment 18•2 months ago
|
||
TabsListBase's new abstract methods are the hooks it already called, and TabsPanel, its only subclass, overrides every one of them.
| Assignee | ||
Comment 19•2 months ago
|
||
| Assignee | ||
Comment 20•2 months ago
|
||
getInferenceOptions returns a bare { runtimeFilename } when no Remote Settings record matches, so the two telemetry reads of modelRevision narrow with in; they record the same value as before.
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
Comment 21•2 months ago
|
||
Comment 22•2 months ago
|
||
Comment 23•2 months ago
|
||
Comment 24•2 months ago
|
||
| bugherder | ||
Comment 25•2 months ago
|
||
Comment 26•2 months ago
|
||
| bugherder | ||
Comment 27•2 months ago
|
||
Authored by https://github.com/daogottwald
https://github.com/mozilla/enterprise-firefox/commit/cf589b9f502d40fd41429c75b40387b8d0dd6164
[enterprise-main] Bug 2076596 - Document that moveTabBefore and moveTabAfter accept a tab group label. r=tabbrowser-reviewers,jsudiaman
Authored by https://github.com/daogottwald
https://github.com/mozilla/enterprise-firefox/commit/5609ce2596345099798ab920fc026ff4d49636b0
[enterprise-main] Bug 2076596 - Stop passing arguments that OpenTabsController ignores from the split view's open tabs page. r=tabbrowser-reviewers,jsudiaman
Authored by https://github.com/daogottwald
https://github.com/mozilla/enterprise-firefox/commit/84e401eabf5c5755bf4274ab7eb05416795e558d
[enterprise-main] Bug 2076596 - Type-check the tab strip's window modules, starting with tab-groups-list.mjs and opentabs-splitview.mjs, and GroupsList.sys.mjs. r=tabbrowser-reviewers,nsharpley
Authored by https://github.com/daogottwald
https://github.com/mozilla/enterprise-firefox/commit/4c7e12f307de8b5ac4009161d826d9524562699a
[enterprise-main] Bug 2076596 - Declare the lazy getters with XPCOMUtils.declareLazy in the type-checked tabbrowser modules. r=tabbrowser-reviewers,kcochrane
Authored by https://github.com/daogottwald
https://github.com/mozilla/enterprise-firefox/commit/f0ce2dc6c1dbf8259f09627d8ea4a308e07a461c
[enterprise-main] Bug 2076596 - Declare the lazy getters with XPCOMUtils.declareLazy in the tabbrowser modules still excluded from type checking. r=tabbrowser-reviewers,kcochrane
(via GitHub webhook, authenticated as shared-secret)
Updated•2 months ago
|
Comment 28•1 month ago
|
||
Comment 29•1 month ago
|
||
Comment 30•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1ed6fc69d11b
https://hg.mozilla.org/mozilla-central/rev/996bf3567017
https://hg.mozilla.org/mozilla-central/rev/030d02f36157
https://hg.mozilla.org/mozilla-central/rev/1b9b142e2f7c
https://hg.mozilla.org/mozilla-central/rev/e96094fc50f0
https://hg.mozilla.org/mozilla-central/rev/e93ecd380644
https://hg.mozilla.org/mozilla-central/rev/5a0c9f4d063a
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 31•1 month ago
|
||
Comment 32•1 month ago
|
||
| bugherder | ||
Comment 33•1 month ago
|
||
| bugherder | ||
Comment 34•1 month ago
|
||
Comment 35•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 month ago
|
Comment 36•1 month ago
|
||
Comment 37•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•