Bug: Intermittent browser/components/sessionstore/test/browser_595601-restore_hidden.js | leaked 2 window(s) until shutdown [url = about:blank]
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-09-18 13:11:25+00:00
Resolved: 2022-02-22 17:03:29+00:00

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

---
```
[task 2021-09-18T12:12:50.471Z] 12:12:50     INFO - GECKO(5952) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-09-18T12:12:50.539Z] 12:12:50     INFO - GECKO(5952) | Destroying context 0D916000 surface 05940900 on display 05922000
[task 2021-09-18T12:12:50.553Z] 12:12:50     INFO - GECKO(5952) | [GPU 5300, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-09-18T12:12:51.293Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (13d48800) [pid = 6116] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-09-18T12:12:51.300Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (13bb5a00) [pid = 6116] [serial = 3] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2021-09-18T12:12:51.301Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (2082b800) [pid = 6116] [serial = 12] [outer = 0] [url = chrome://mochikit/content/browser-harness.xhtml]
[task 2021-09-18T12:12:51.302Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (221f6000) [pid = 6116] [serial = 13] [outer = 0] [url = about:blank]
[task 2021-09-18T12:12:51.302Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (18ef3a00) [pid = 6116] [serial = 5] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2021-09-18T12:12:51.303Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (1bcdc800) [pid = 6116] [serial = 6] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2021-09-18T12:12:51.304Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (1d382100) [pid = 6116] [serial = 9] [outer = 0] [url = resource://gre-resources/hiddenWindow.html]
[task 2021-09-18T12:12:51.304Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (11baf400) [pid = 6116] [serial = 1150] [outer = 0] [url = about:blank]
[task 2021-09-18T12:12:51.305Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (13bb4f00) [pid = 6116] [serial = 7] [outer = 0] [url = about:blank]
[task 2021-09-18T12:12:51.306Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (1dc5fc00) [pid = 6116] [serial = 11] [outer = 0] [url = resource://gre-resources/hiddenWindow.html]
[task 2021-09-18T12:12:51.319Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3357
[task 2021-09-18T12:12:51.393Z] 12:12:51     INFO - GECKO(5952) | [Parent 6116, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-09-18T12:12:51.456Z] 12:12:51     INFO - TEST-INFO | Main app process: exit 0
[task 2021-09-18T12:12:51.457Z] 12:12:51     INFO - TEST-INFO | Confirming we saw 1627 DOCSHELL created and 1559 destroyed log strings.
[task 2021-09-18T12:12:51.457Z] 12:12:51     INFO - TEST-INFO | Confirming we saw 4219 DOMWINDOW created and 3945 destroyed log strings.
[task 2021-09-18T12:12:51.458Z] 12:12:51    ERROR - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_595601-restore_hidden.js | leaked 2 window(s) until shutdown [url = about:blank]
[task 2021-09-18T12:12:51.459Z] 12:12:51     INFO - TEST-INFO | browser/components/sessionstore/test/browser_595601-restore_hidden.js | windows(s) leaked: [pid = 3848] [serial = 255], [pid = 3848] [serial = 256]
[task 2021-09-18T12:12:51.459Z] 12:12:51     INFO - TEST-INFO | browser/components/sessionstore/test/browser_595601-restore_hidden.js | This test created 1 hidden window(s)
```