Validate session state against `session.schema.json` on each write when a debug pref is set
Categories
(Firefox :: Session Restore, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(3 external files)
Only test_session_schema.js checks state against session.schema.json, using a fixed file, so the schema has fallen behind what Firefox writes (bug 1991409, bug 2012815). Add a pref that runs validateState on each write, and turn it on for selected existing browser tests so a change that writes a property the schema doesn't describe fails there. A console warning doesn't fail a browser-chrome test, so a mismatch has to reach the test as a failure.
types/sessionstore.ts should then say why most window and tab state properties are optional, and what a schema mismatch does at runtime.
| Assignee | ||
Comment 1•23 days ago
|
||
SessionStore.validateState stops warning about an invalid state: SessionSaver reports it, and test_session_schema.js, its other caller, logs the errors itself.
Updated•23 days ago
|
| Assignee | ||
Comment 2•23 days ago
|
||
| Assignee | ||
Comment 3•23 days ago
|
||
Comment 6•17 days ago
|
||
Backed out for causing failures at browser_491577.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/362536f056ea
Push where failures started: https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=VvGcC1dbTe63tIZAONdDkA.0&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=4bebcbbde510e4fd516dcd1744f3614367efda4b
Comment 7•17 days ago
|
||
| Assignee | ||
Updated•16 days ago
|
Comment 9•16 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3c890445fdf7
https://hg.mozilla.org/mozilla-central/rev/c567029ad9da
https://hg.mozilla.org/mozilla-central/rev/c1ee6479dac7
Updated•1 day ago
|
Description
•