Type the window geometry and chrome flags restore in SessionStore.sys.mjs
Categories
(Firefox :: Session Restore, task)
Tracking
()
| 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.
| Assignee | ||
Comment 1•2 months ago
|
||
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.
Updated•2 months ago
|
Comment 3•2 months ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•