High frequency browser/components/sessionstore/test/browser_490040.js | single tracking bug
Categories
(Firefox :: Session Restore, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr153 | --- | unaffected |
| firefox161 | --- | unaffected |
| firefox162 | --- | unaffected |
| firefox163 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: spohl, NeedInfo)
References
(Regression)
Details
(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [collect_confirm_failure])
Attachments
(1 external file)
Filed by: agoloman [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=609209877&repo=autoland&task=TD2uC4B_QE6h9MmLdRaiQQ.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/TD2uC4B_QE6h9MmLdRaiQQ/runs/0/artifacts/public/logs/live_backing.log
[task 2026-11-21T08:49:42.464+00:00] 08:49:42 INFO - TEST-PASS | browser/components/sessionstore/test/browser_490040.js | test_bug_490040 - That window should not be restorable
[task 2026-11-21T08:49:42.465+00:00] 08:49:42 INFO - Buffered messages finished
[task 2026-11-21T08:49:42.465+00:00] 08:49:42 INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_490040.js | test_bug_490040 - Console message: [JavaScript Error: "SessionStateValidationError: #/windows/1/_closedTabs/0/state/entries/0/index: False boolean schema." {file: "moz-src:///browser/components/sessionstore/SessionSaver.sys.mjs" line: 0}]
[task 2026-11-21T08:49:57.359+00:00] 08:49:57 INFO - GECKO(6084) | 1795250997358 SessionStore ERROR SessionStateValidationError: #/windows/1/_closedTabs/0/state/entries/0/index: False boolean schema.
[task 2026-11-21T08:49:57.360+00:00] 08:49:57 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-11-21T08:49:57.360+00:00] 08:49:57 INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_490040.js | test_bug_490040 - Console message: [JavaScript Error: "SessionStateValidationError: #/windows/1/_closedTabs/0/state/entries/0/index: False boolean schema." {file: "moz-src:///browser/components/sessionstore/SessionSaver.sys.mjs" line: 0}]
[task 2026-11-21T08:50:19.418+00:00] 08:50:19 INFO - GECKO(6084) | [WARN glean_core::core] failed to clear internal client info storage: An Rkv error occurred: key/value pair not found
[task 2026-11-21T08:50:19.429+00:00] 08:50:19 INFO - GECKO(6084) | [WARN glean_core::core] failed to clear internal client info storage: An Rkv error occurred: key/value pair not found
[task 2026-11-21T08:50:56.474+00:00] 08:50:56 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-11-21T08:50:56.474+00:00] 08:50:56 INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_490040.js | test_bug_490040 - Test timed out
[task 2026-11-21T08:50:57.176+00:00] 08:50:57 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-11-21T08:50:57.176+00:00] 08:50:57 INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_490040.js | profile uploaded in profile_browser_490040-2.js.json.gz
[task 2026-11-21T08:50:57.177+00:00] 08:50:57 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-11-21T08:50:57.177+00:00] 08:50:57 INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_490040.js | Test timed out
[task 2026-11-21T08:50:57.177+00:00] 08:50:57 INFO - TEST-INFO took 90708ms
[task 2026-11-21T08:50:57.178+00:00] 08:50:57 INFO - GECKO(6084) | Completed ShutdownLeaks collections in process 4548
[task 2026-11-21T08:50:57.178+00:00] 08:50:57 INFO - TEST-START | Shutdown
Comment 1•3 days ago
|
||
Set release status flags based on info from the regressing bug 2079808
:spohl, since you are the author of the regressor, bug 2079808, could you take a look?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 2•2 days ago
|
||
Updated•2 days ago
|
| Assignee | ||
Comment 3•2 days ago
|
||
This looks like a problem with the test data in browser_490040.js that bug 2079808 only exposed, rather than a regression from that patch.
Since bug 2088825, the session store browser tests validate every session write against session.schema.json. browser_490040.js gives one closed tab a history entry with index: 1, but index belongs on the tab state, not on an entry. So whenever a session save happens while that test window is open, validation rejects the write. Whether a save lands in that short time range is timing, which would explain why it's rare. The patch for bug 2079808 added a test to the session store browser.toml, so CI reran that whole manifest in about 98 repeat jobs on that push, and one of them hit it.
Checking that closed tab directly with SessionStore.validateState() gives exactly this error (entries/0/index: False boolean schema) with index on the entry, and not once it's removed. D344973 moves index: 1 up to the tab state.
I couldn't reproduce the intermittent locally (30 runs), so the test is repeated on try here: https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123961
| Comment hidden (Intermittent Failures Robot) |
Comment 5•1 day ago
|
||
The following patch is waiting for review from an inactive reviewer:
| ID | Title | Author | Reviewer Status |
|---|---|---|---|
| D344973 | Bug 2095909: Move the closed tab's history index out of its session entry in browser_490040.js. r?#sessionstore-reviewers-rotation | spohl | jswinarton: Back Dec 7, 2026 |
:spohl, could you please find another reviewer?
For more information, please visit BugBot documentation.
Comment 7•17 hours ago
|
||
| bugherder | ||
Description
•