Closed Bug 2084412 Opened 1 month ago Closed 1 month ago

tab-groups-list.mjs:79 TS2345: Argument of type 'WindowProxy' is not assignable to parameter of type 'BrowserWindow'.

Categories

(Firefox :: Tabbed Browser, defect)

defect

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox-esr153 --- unaffected
firefox158 --- unaffected
firefox159 --- unaffected
firefox160 --- fixed

People

(Reporter: robwu, Assigned: dao)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

The change of
this.#win.SessionStore.openSavedTabGroup
to
lazy.SessionStore.openSavedTabGroup

triggers permanent lint failures in the current tip of the tree. I undid that specific line and the linting error went away.

$ ./mach lint browser/components/tabbrowser/content/tab-groups-list.mjs
Unable to match regex against output:   Type 'WindowProxy' is not assignable to type 'ChromeWindow'.
Unable to match regex against output:     Types of property 'isChromeWindow' are incompatible.
Unable to match regex against output:       Type 'boolean' is not assignable to type 'true'.
/path/to/gecko/browser/components/tabbrowser/content/tab-groups-list.mjs
  79   error  TS2345: Argument of type 'WindowProxy' is not assignable to parameter of type 'BrowserWindow'.  (typescript)

✖ 1 problem (1 error, 0 warnings, 0 fixed)

Set release status flags based on info from the regressing bug 2082765

:dao, since you are the author of the regressor, bug 2082765, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(dao+bmo)
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/29ca5d599ca1 https://hg.mozilla.org/integration/autoland/rev/123e7149c5fb Type the window tab-groups-list.mjs passes to SessionStore as a BrowserWindow. r=tabbrowser-reviewers,jsudiaman
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: