Closed
Bug 2091650
Opened 17 days ago
Closed 15 days ago
Report only the real schema mismatch in SessionStateValidationError messages
Categories
(Firefox :: Session Restore, task)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
162 Branch
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 external file)
When browser.sessionstore.debug.validate_state is set, a SessionStateValidationError lists the real mismatch followed by around twenty "False boolean schema." errors. When an object fails validation, unevaluatedProperties rejects each of its properties, and this repeats at every ancestor level. For example, an undeclared charset on a history entry is reported as:
#/windows/0/tabs/1/entries/0/charset: False boolean schema.; #/windows/0/tabs: False boolean schema.; #/windows/0/groups: False boolean schema.; #/windows/0/closedGroups: False boolean schema.; …
SessionSaver's #reportInvalidState should drop a false-schema error when another error sits under the same parent object, unless that error is itself a false-schema error at the same level, so that two undeclared properties in one object are both still reported.
| Assignee | ||
Comment 1•16 days ago
|
||
Updated•16 days ago
|
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ef92e2e819ca
https://hg.mozilla.org/integration/autoland/rev/1c9551550ccc
Report only the real schema mismatch in SessionStateValidationError messages. r=sfoster,sessionstore-reviewers
Comment 3•15 days ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
status-firefox162:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Comment 4•15 days ago
|
||
| bugherder | ||
Updated•20 hours ago
|
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in
before you can comment on or make changes to this bug.
Description
•