Bug: Intermittent browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js | single tracking bug
Status: REOPENED
Priority: P5
Created: 2023-06-17 04:00:28+00:00
Resolved: 2024-09-23 07:19:16+00:00

**Filed by:** nfay [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=419694857&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YgcFf8vJQEWAftBvVEaHjA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2023-06-17T02:53:29.209Z] 02:53:29     INFO - TEST-PASS | browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js | 2 closed actions have been recorded - true == true - 
[task 2023-06-17T02:53:29.209Z] 02:53:29     INFO - TEST-PASS | browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js | 0 closed actions have been recorded - true == true - 
[task 2023-06-17T02:53:29.210Z] 02:53:29     INFO - Leaving test bound test_user_clears_history
[task 2023-06-17T02:53:29.210Z] 02:53:29     INFO - Entering test bound test_reopen_last_tab_if_no_closed_actions
[task 2023-06-17T02:53:29.210Z] 02:53:29     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://example.com/" line: 0}]
[task 2023-06-17T02:53:29.211Z] 02:53:29     INFO - TEST-PASS | browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js | "https://example.com/" == "https://example.com/" - 
[task 2023-06-17T02:53:29.212Z] 02:53:29     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://example.com/" line: 0}]
[task 2023-06-17T02:53:29.212Z] 02:53:29     INFO - Leaving test bound test_reopen_last_tab_if_no_closed_actions
[task 2023-06-17T02:53:29.212Z] 02:53:29     INFO - Entering test bound test_reopen_last_session_if_no_closed_actions
[task 2023-06-17T02:53:29.213Z] 02:53:29     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://example.org/" line: 0}]
[task 2023-06-17T02:53:29.213Z] 02:53:29     INFO - Buffered messages logged at 02:53:29
[task 2023-06-17T02:53:29.213Z] 02:53:29     INFO - Saw load for https://example.org/
[task 2023-06-17T02:53:29.214Z] 02:53:29     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://example.com/" line: 0}]
[task 2023-06-17T02:53:29.214Z] 02:53:29     INFO - Saw load for https://example.com/
[task 2023-06-17T02:53:29.215Z] 02:53:29     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://www.mozilla.org/" line: 0}]
[task 2023-06-17T02:53:29.215Z] 02:53:29     INFO - Saw load for https://www.mozilla.org/
[task 2023-06-17T02:53:29.216Z] 02:53:29     INFO - Buffered messages finished
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js | Got the expected number of tabs - 5 == 4 - {"filename":"chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js","name":"test_reopen_last_session_if_no_closed_actions","sourceId":3540,"lineNumber":268,"columnNumber":10,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":533,"lineNumber":1131,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":533,"lineNumber":1203,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":533,"lineNumber":1345,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":533,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":560,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*handleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"test_reopen_last_session_if_no_closed_actions@chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js:268:10\nasync*handleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - Stack trace:
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js:test_reopen_last_session_if_no_closed_actions:268
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - chrome://mochikit/content/browser-test.js:handleTask:1131
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-06-17T02:53:29.220Z] 02:53:29     INFO - Leaving test bound test_reopen_last_session_if_no_closed_actions
[task 2023-06-17T02:53:29.595Z] 02:53:29     INFO - GECKO(3215) | MEMORY STAT | vsize 24786MB | residentFast 619MB | heapAllocated 271MB
[task 2023-06-17T02:53:29.595Z] 02:53:29     INFO - TEST-OK | browser/components/sessionstore/test/browser_restoreLastClosedTabOrWindowOrSession.js | took 5018ms
[task 2023-06-17T02:53:29.603Z] 02:53:29     INFO - checking window state
[task 2023-06-17T02:53:29.612Z] 02:53:29     INFO - TEST-START | browser/components/sessionstore/test/browser_restoreTabContainer.js
```