Closed Bug 2088936 Opened 1 month ago Closed 29 days ago

`ClosedTabStateData` mistypes `sourceWindowId` and misdescribes `sourceClosedId`

Categories

(Firefox :: Session Restore, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

ClosedTabStateData in TabState.sys.mjs disagrees with the state it describes:

  • sourceWindowId is typed WindowID, but the closed tabs of a closed window get that window's integer closedId from #resetClosedTabIds when closed windows are loaded. session.schema.json types it as an integer or a string since bug 1991409.
  • sourceClosedId is documented as set once the tab's window has closed. It is only set on the copies getClosedTabDataFromClosedWindows hands to callers, never on stored state.
Depends on: 2065800
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/26d7dcaa2871 https://hg.mozilla.org/integration/autoland/rev/e845859356ed Fix the sourceWindowId type and the sourceClosedId description in ClosedTabStateData. r=sfoster,sessionstore-reviewers
Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
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: