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)

task

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: 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
Status: ASSIGNED → RESOLVED
Closed: 15 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: