Bug: Intermittent browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-02-14 22:14:14+00:00
Resolved: 2023-03-14 17:01:08+00:00

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

---
```
[task 2023-02-14T19:33:53.860Z] 19:33:53     INFO - TEST-PASS | browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | Number of tabs is 2 - 
[task 2023-02-14T19:33:53.861Z] 19:33:53     INFO - Buffered messages finished
[task 2023-02-14T19:33:53.861Z] 19:33:53     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | Test timed out - 
[task 2023-02-14T19:33:53.863Z] 19:33:53     INFO - GECKO(4656) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_167639624653246\AppData\Local\Temp\tmp8tzcju1e.mozrunner\runtests_leaks_tab_pid6316.log
[task 2023-02-14T19:33:53.863Z] 19:33:53     INFO - GECKO(4656) | [6316, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:345
[task 2023-02-14T19:33:53.864Z] 19:33:53     INFO - GECKO(4656) | [Child 6316, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.864Z] 19:33:53     INFO - GECKO(4656) | [Child 7580, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.865Z] 19:33:53     INFO - GECKO(4656) | [Child 7580, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.865Z] 19:33:53     INFO - GECKO(4656) | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2023-02-14T19:33:53.866Z] 19:33:53     INFO - GECKO(4656) | [Child 7580, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:430
[task 2023-02-14T19:33:53.866Z] 19:33:53     INFO - GECKO(4656) | [Child 6316, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.867Z] 19:33:53     INFO - GECKO(4656) | [Child 6316, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.867Z] 19:33:53     INFO - GECKO(4656) | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2023-02-14T19:33:53.867Z] 19:33:53     INFO - GECKO(4656) | [Child 6316, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:430
[task 2023-02-14T19:33:53.880Z] 19:33:53     INFO - GECKO(4656) | [Child 7580, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.892Z] 19:33:53     INFO - GECKO(4656) | [Child 6316, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-14T19:33:53.935Z] 19:33:53     INFO - GECKO(4656) | [Child 9000: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (c48e700) [pid = 9000] [serial = 3] [outer = 56a2280]
[task 2023-02-14T19:33:53.948Z] 19:33:53     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-02-14T19:33:54.665Z] 19:33:54     INFO - GECKO(4656) | MEMORY STAT | vsize 1139MB | vsizeMaxContiguous 1293MB | residentFast 336MB | heapAllocated 118MB
[task 2023-02-14T19:33:54.673Z] 19:33:54     INFO - TEST-OK | browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | took 134540ms
[task 2023-02-14T19:33:54.674Z] 19:33:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-14T19:33:54.675Z] 19:33:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | Found a tab after previous test timed out: https://example.org/ - 
[task 2023-02-14T19:33:54.684Z] 19:33:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-14T19:33:54.685Z] 19:33:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | Found a tab after previous test timed out: about:firefoxview - 
[task 2023-02-14T19:33:54.706Z] 19:33:54     INFO - GECKO(4656) | [Parent 1996, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:163
[task 2023-02-14T19:33:54.710Z] 19:33:54     INFO - GECKO(4656) | [Parent 1996, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:163
[task 2023-02-14T19:33:54.720Z] 19:33:54     INFO - GECKO(4656) | [Child 6216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 565ed00 == 1 [pid = 6216] [id = 101]
[task 2023-02-14T19:33:54.720Z] 19:33:54     INFO - GECKO(4656) | [Child 6216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (a58e3a0) [pid = 6216] [serial = 236] [outer = 0]
[task 2023-02-14T19:33:54.721Z] 19:33:54     INFO - GECKO(4656) | [Child 6216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (a551000) [pid = 6216] [serial = 237] [outer = a58e3a0]
[task 2023-02-14T19:33:54.736Z] 19:33:54     INFO - checking window state
[task 2023-02-14T19:33:54.797Z] 19:33:54     INFO - TEST-START | browser/components/sessionstore/test/browser_focus_after_restore.js
[task 2023-02-14T19:33:54.817Z] 19:33:54     INFO - GECKO(4656) | [Child 8768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL a2fb100 == 1 [pid = 8768] [id = 0]
[task 2023-02-14T19:33:54.822Z] 19:33:54     INFO - GECKO(4656) | [Child 8768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (52a4280) [pid = 8768] [serial = 1] [outer = 0]
[task 2023-02-14T19:33:54.824Z] 19:33:54     INFO - GECKO(4656) | [Child 8768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (a2fde00) [pid = 8768] [serial = 2] [outer = 52a4280]
[task 2023-02-14T19:33:54.861Z] 19:33:54     INFO - GECKO(4656) | [Parent 1996, Main Thread] WARNING: WebProgress Ignored: BrowsingContext is null or discarded: file /builds/worker/checkouts/gecko/dom/ipc/BrowserParent.cpp:3001
[task 2023-02-14T19:33:54.868Z] 19:33:54     INFO - GECKO(4656) | [Parent 1996, Main Thread] WARNING: WebProgress Ignored: BrowsingContext is null or discarded: file /builds/worker/checkouts/gecko/dom/ipc/BrowserParent.cpp:3001
[task 2023-02-14T19:33:54.869Z] 19:33:54     INFO - GECKO(4656) | [Parent 1996, Main Thread] WARNING: WebProgress Ignored: BrowsingContext is null or discarded: file /builds/worker/checkouts/gecko/dom/ipc/BrowserParent.cpp:3001
[task 2023-02-14T19:33:54.869Z] 19:33:54     INFO - GECKO(4656) | [Parent 1996, Main Thread] WARNING: WebProgress Ignored: BrowsingContext is null or discarded: file /builds/worker/checkouts/gecko/dom/ipc/BrowserParent.cpp:3001
[task 2023-02-14T19:33:54.897Z] 19:33:54     INFO - GECKO(4656) | [Child 9000: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL a6fa400 == 0 [pid = 9000] [id = 0] [url = https://example.org/]
[task 2023-02-14T19:33:54.912Z] 19:33:54     INFO - GECKO(4656) | [Child 8768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (c18a400) [pid = 8768] [serial = 3] [outer = 52a4280]
[task 2023-02-14T19:33:54.930Z] 19:33:54     INFO - GECKO(4656) | [Child 9000: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (56a2280) [pid = 9000] [serial = 1] [outer = 0] [url = https://example.org/]
[task 2023-02-14T19:33:54.935Z] 19:33:54     INFO - GECKO(4656) | [Child 9000: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (c48e700) [pid = 9000] [serial = 3] [outer = 0] [url = https://example.org/]
[task 2023-02-14T19:33:54.936Z] 19:33:54     INFO - GECKO(4656) | [Child 9000: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (a6fce00) [pid = 9000] [serial = 2] [outer = 0] [url = about:blank]
[task 2023-02-14T19:33:54.937Z] 19:33:54     INFO - GECKO(4656) | [Child 9000, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3384
[task 2023-02-14T19:33:54.939Z] 19:33:54     INFO - GECKO(4656) | [Child 9000, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2023-02-14T19:33:54.947Z] 19:33:54     INFO - GECKO(4656) | [Child 9000, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4691
[task 2023-02-14T19:33:54.990Z] 19:33:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-14T19:33:55.001Z] 19:33:55     INFO - Buffered messages logged at 19:33:54
[task 2023-02-14T19:33:55.002Z] 19:33:55     INFO - Entering test bound test
[task 2023-02-14T19:33:55.003Z] 19:33:55     INFO - TEST-PASS | browser/components/sessionstore/test/browser_focus_after_restore.js | urlbar is focused before restoring - 
[task 2023-02-14T19:33:55.003Z] 19:33:55     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.org/" line: 0}]
[task 2023-02-14T19:33:55.004Z] 19:33:55     INFO - Buffered messages finished
[task 2023-02-14T19:33:55.006Z] 19:33:55     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_focus_after_restore.js | uncaught exception - "ReferenceError: info is not defined at obs@chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_firefoxView_selected_restore.js:45:7\n_restoreTabContentComplete@resource:///modules/sessionstore/SessionStore.sys.mjs:6534:20\n_restoreTabContent/<@resource:///modules/sessionstore/SessionStore.sys.mjs:6408:12\n"
[task 2023-02-14T19:33:55.007Z] 19:33:55     INFO - Stack trace:
[task 2023-02-14T19:33:55.007Z] 19:33:55     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1979
[task 2023-02-14T19:33:55.007Z] 19:33:55     INFO - resource:///modules/sessionstore/SessionStore.sys.mjs:_restoreTabContentComplete:6534
[task 2023-02-14T19:33:55.007Z] 19:33:55     INFO - resource:///modules/sessionstore/SessionStore.sys.mjs:_restoreTabContent/<:6408
[task 2023-02-14T19:33:55.007Z] 19:33:55     INFO - GECKO(4656) | JavaScript error: chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_firefoxView_selected_restore.js, line 45: ReferenceError: info is not defined
[task 2023-02-14T19:33:55.009Z] 19:33:55     INFO - running 
[task 2023-02-14T19:33:55.009Z] 19:33:55     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-14T19:33:55.011Z] 19:33:55     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_firefoxView_selected_restore.js | Uncaught exception received from previously timed out test bound test_firefox_view_selected_tab - at chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_firefoxView_selected_restore.js:69 - ReferenceError: ok is not defined
[task 2023-02-14T19:33:55.011Z] 19:33:55     INFO - Stack trace:
[task 2023-02-14T19:33:55.011Z] 19:33:55     INFO - test_firefox_view_selected_tab@chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_firefoxView_selected_restore.js:69:3
[task 2023-02-14T19:33:55.013Z] 19:33:55     INFO - Console message: [JavaScript Error: "ReferenceError: info is not defined" {file: "chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_firefoxView_selected_restore.js" line: 45}]
[task 2023-02-14T19:33:55.013Z] 19:33:55     INFO - obs@chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_firefoxView_selected_restore.js:45:7
[task 2023-02-14T19:33:55.013Z] 19:33:55     INFO - _restoreTabContentComplete@resource:///modules/sessionstore/SessionStore.sys.mjs:6534:20
[task 2023-02-14T19:33:55.013Z] 19:33:55     INFO - _restoreTabContent/<@resource:///modules/sessionstore/SessionStore.sys.mjs:6408:12
[task 2023-02-14T19:33:55.013Z] 19:33:55     INFO - 
[task 2023-02-14T19:33:55.014Z] 19:33:55     INFO - TEST-PASS | browser/components/sessionstore/test/browser_focus_after_restore.js | content area is focused after restoring - 
[task 2023-02-14T19:33:55.014Z] 19:33:55     INFO - Leaving test bound test
[task 2023-02-14T19:33:55.015Z] 19:33:55     INFO - GECKO(4656) | JavaScript error: chrome://mochikit/content/browser-test.js, line 1100: TypeError: can't access property "shift", currentScope.__tasks is null
[task 2023-02-14T19:33:55.026Z] 19:33:55     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-14T19:33:55.044Z] 19:33:55     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_focus_after_restore.js | A promise chain failed to handle a rejection: can't access property "shift", currentScope.__tasks is null - stack: _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1100:13
[task 2023-02-14T19:33:55.044Z] 19:33:55     INFO - Rejection date: Tue Feb 14 2023 19:33:55 GMT+0000 (Greenwich Mean Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":562,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":528,"lineNumber":675,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"nextTest@chrome://mochikit/content/browser-test.js:675:29\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nnextTest@chrome://mochikit/content/browser-test.js:675:29\n","nativeSavedFrame":{}}
[task 2023-02-14T19:33:55.044Z] 19:33:55     INFO - Stack trace:
[task 2023-02-14T19:33:55.045Z] 19:33:55     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-14T19:33:55.045Z] 19:33:55     INFO - chrome://mochikit/content/browser-test.js:nextTest:675
[task 2023-02-14T19:33:55.045Z] 19:33:55     INFO - Console message: [JavaScript Error: "TypeError: can't access property "shift", currentScope.__tasks is null" {file: "chrome://mochikit/content/browser-test.js" line: 1100}]
[task 2023-02-14T19:33:55.592Z] 19:33:55     INFO - GECKO(4656) | MEMORY STAT | vsize 1139MB | vsizeMaxContiguous 1293MB | residentFast 336MB | heapAllocated 118MB
[task 2023-02-14T19:33:55.597Z] 19:33:55     INFO - TEST-OK | browser/components/sessionstore/test/browser_focus_after_restore.js | took 796ms
[task 2023-02-14T19:33:55.604Z] 19:33:55     INFO - GECKO(4656) | [Child 1492: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL a5f8900 == 2 [pid = 1492] [id = 96]
[task 2023-02-14T19:33:55.604Z] 19:33:55     INFO - GECKO(4656) | [Child 1492: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (5786b80) [pid = 1492] [serial = 246] [outer = 0]
[task 2023-02-14T19:33:55.605Z] 19:33:55     INFO - GECKO(4656) | [Child 1492: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (a5f9e00) [pid = 1492] [serial = 247] [outer = 5786b80]
[task 2023-02-14T19:33:55.622Z] 19:33:55     INFO - checking window state
[task 2023-02-14T19:33:55.652Z] 19:33:55     INFO - TEST-START | browser/components/sessionstore/test/browser_forget_async_closings.js
```