Closed Bug 2074389 Opened 2 months ago Closed 2 months ago

Type the window geometry and chrome flags restore in SessionStore.sys.mjs

Categories

(Firefox :: Session Restore, task)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

The screen bounds used to keep a restored window on screen come back as out-parameters from GetAvailRectDisplayPix, which the checker types as empty objects, so every comparison and subtraction on them is an error. The size mode is restored from a plain string where the state type names the four modes, and the chrome flag values read from CHROME_FLAGS_MAP are a string-or-number union the features list rejects. Typing the out-parameters once and the flag map entries clears the block.

The module stays on the exclude list in browser/components/sessionstore/tsconfig.json until the last of the bugs splitting this work up takes it off.

Blocks: 2074388

Behavior-neutral apart from one case: when the restored state has no sizemodeBeforeMinimized, the window's state now leaves it unset instead of storing "", which the session schema doesn't allow. Its only reader treats both as falsy.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c1519404d0d7 https://hg.mozilla.org/integration/autoland/rev/9cb491fc4c2b Type the window geometry and chrome flags restore in SessionStore.sys.mjs. r=sfoster,sessionstore-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
QA Whiteboard: [qa-triage-done-c160/b159]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: