Bug: Intermittent browser/components/sessionstore/test/browser_586068-select.js | leaked 1 docShell(s) until shutdown
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-07-28 13:14:22+00:00
Resolved: 2021-11-02 17:05:49+00:00

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

---
```
INFO - TEST-START | browser/components/sessionstore/test/browser_windowStateContainer.js
[task 2021-07-28T12:18:04.260Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 28a61800 == 43 [pid = 11232] [id = 466]
[task 2021-07-28T12:18:04.261Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 154 (2b21eb00) [pid = 11232] [serial = 1138] [outer = 0]
[task 2021-07-28T12:18:04.261Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 155 (28a66400) [pid = 11232] [serial = 1139] [outer = 2b21eb00]
[task 2021-07-28T12:18:04.267Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1306
[task 2021-07-28T12:18:04.273Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4227
[task 2021-07-28T12:18:04.431Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 2d29f400 == 44 [pid = 11232] [id = 467]
[task 2021-07-28T12:18:04.432Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 156 (2b21e200) [pid = 11232] [serial = 1140] [outer = 0]
[task 2021-07-28T12:18:04.489Z] 12:18:04     INFO - GECKO(10168) | [Child 1500: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL bcb3c00 == 3 [pid = 1500] [id = 75]
[task 2021-07-28T12:18:04.489Z] 12:18:04     INFO - GECKO(10168) | [Child 1500: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (bcd2d00) [pid = 1500] [serial = 199] [outer = 0]
[task 2021-07-28T12:18:04.490Z] 12:18:04     INFO - GECKO(10168) | [Child 1500: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (bcb5400) [pid = 1500] [serial = 200] [outer = bcd2d00]
[task 2021-07-28T12:18:04.531Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232, Main Thread] WARNING: NS_ENSURE_TRUE(presShell) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4225
[task 2021-07-28T12:18:04.544Z] 12:18:04     INFO - GECKO(10168) | [Parent 11232: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 157 (28a67400) [pid = 11232] [serial = 1141] [outer = 2b21e200]
<...>
INFO - GECKO(10168) | [Parent 11232, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-07-28T12:18:35.057Z] 12:18:35     INFO - TEST-INFO | Main app process: exit 0
[task 2021-07-28T12:18:35.058Z] 12:18:35     INFO - TEST-INFO | Confirming we saw 1643 DOCSHELL created and 1569 destroyed log strings.
[task 2021-07-28T12:18:35.058Z] 12:18:35     INFO - TEST-INFO | Confirming we saw 4253 DOMWINDOW created and 3978 destroyed log strings.
[task 2021-07-28T12:18:35.059Z] 12:18:35    ERROR - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_586068-select.js | leaked 1 docShell(s) until shutdown
[task 2021-07-28T12:18:35.059Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_586068-select.js | docShell(s) leaked: [pid = 1500] [id = 93]
[task 2021-07-28T12:18:35.060Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_586068-select.js | This test created 1 hidden window(s)
[task 2021-07-28T12:18:35.060Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_586068-select.js | This test created 1 hidden docshell(s)
[task 2021-07-28T12:18:35.060Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_1234021.js | This test created 1 hidden window(s)
[task 2021-07-28T12:18:35.061Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_1234021.js | This test created 1 hidden docshell(s)
[task 2021-07-28T12:18:35.061Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_1284886_suspend_tab.js | This test created 1 hidden window(s)
[task 2021-07-28T12:18:35.062Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_1284886_suspend_tab.js | This test created 1 hidden docshell(s)
[task 2021-07-28T12:18:35.062Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_1446343-windowsize.js | This test created 1 hidden window(s)
[task 2021-07-28T12:18:35.062Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_1446343-windowsize.js | This test created 1 hidden docshell(s)
[task 2021-07-28T12:18:35.063Z] 12:18:35     INFO - TEST-INFO | browser/components/sessionstore/test/browser_339445.js | This test created 1 hidden window(s)
```