Bug: Intermittent browser/components/preferences/tests/siteData/browser_siteData2.js | leaked 2 window(s) until shutdown [url = chrome://browser/content/preferences/dialogs/siteDataSettings.xhtml]
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-03-29 12:02:18+00:00
Resolved: 2022-09-02 18:53:41+00:00

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

---
```
[task 2022-03-29T10:36:03.284Z] 10:36:03     INFO - TEST-OK | browser/components/preferences/tests/siteData/browser_siteData_multi_select.js | took 3743ms
[task 2022-03-29T10:36:03.292Z] 10:36:03     INFO - GECKO(1948) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 11a074c00 == 3 [pid = 1956] [id = 7]
[task 2022-03-29T10:36:03.292Z] 10:36:03     INFO - GECKO(1948) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (115f9e9f0) [pid = 1956] [serial = 15] [outer = 0]
[task 2022-03-29T10:36:03.293Z] 10:36:03     INFO - GECKO(1948) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (11a076000) [pid = 1956] [serial = 16] [outer = 115f9e9f0]
[task 2022-03-29T10:36:03.308Z] 10:36:03     INFO - checking window state
[task 2022-03-29T10:36:03.332Z] 10:36:03     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 113 (11f08c400) [pid = 1948] [serial = 241] [outer = 101e3b7d0]
[task 2022-03-29T10:36:03.346Z] 10:36:03     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(presShell) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4165
[task 2022-03-29T10:36:03.365Z] 10:36:03     INFO - GECKO(1948) | [2022-03-29T10:36:03Z WARN  webrender::device::gl] Missing optimized shader source for gpu_cache_update
[task 2022-03-29T10:36:03.375Z] 10:36:03     INFO - GECKO(1948) | [Child 1950: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10601d400 == 0 [pid = 1950] [id = 10] [url = about:blank]
[task 2022-03-29T10:36:03.375Z] 10:36:03     INFO - GECKO(1948) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 11601b400 == 2 [pid = 1956] [id = 5] [url = about:blank]
[task 2022-03-29T10:36:03.376Z] 10:36:03     INFO - GECKO(1948) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 11a073000 == 1 [pid = 1956] [id = 6] [url = about:blank]
[task 2022-03-29T10:36:03.406Z] 10:36:03     INFO - GECKO(1948) | [Child 1955: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10ca6dc00 == 0 [pid = 1955] [id = 0] [url = about:newtab]
<...>
[task 2022-03-29T10:36:10.767Z] 10:36:10     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: nsAppShell::Exit() called redundantly: file /builds/worker/checkouts/gecko/widget/cocoa/nsAppShell.mm:823
[task 2022-03-29T10:36:10.774Z] 10:36:10     INFO - GECKO(1948) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-03-29T10:36:11.440Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp:306
[task 2022-03-29T10:36:11.440Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp:306
[task 2022-03-29T10:36:11.454Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp:306
[task 2022-03-29T10:36:11.455Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp:306
[task 2022-03-29T10:36:11.569Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (12fbf10e0) [pid = 1948] [serial = 145] [outer = 0] [url = about:preferences#privacy]
[task 2022-03-29T10:36:11.570Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (12fbf3520) [pid = 1948] [serial = 153] [outer = 0] [url = chrome://browser/content/preferences/dialogs/siteDataSettings.xhtml]
[task 2022-03-29T10:36:11.574Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (11f097c00) [pid = 1948] [serial = 163] [outer = 0] [url = chrome://browser/content/preferences/dialogs/siteDataSettings.xhtml]
[task 2022-03-29T10:36:11.575Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (11e065800) [pid = 1948] [serial = 4] [outer = 0] [url = about:blank]
[task 2022-03-29T10:36:11.576Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (101e3b600) [pid = 1948] [serial = 3] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2022-03-29T10:36:11.576Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (101e3ea90) [pid = 1948] [serial = 10] [outer = 0] [url = chrome://mochikit/content/browser-harness.xhtml]
[task 2022-03-29T10:36:11.576Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (12838c800) [pid = 1948] [serial = 11] [outer = 0] [url = about:blank]
[task 2022-03-29T10:36:11.577Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (106233400) [pid = 1948] [serial = 242] [outer = 0] [url = about:blank]
[task 2022-03-29T10:36:11.577Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (101e3c480) [pid = 1948] [serial = 5] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2022-03-29T10:36:11.577Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (11f6da000) [pid = 1948] [serial = 7] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2022-03-29T10:36:11.578Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (11d19ec00) [pid = 1948] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-03-29T10:36:11.578Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (101e3b260) [pid = 1948] [serial = 1] [outer = 0] [url = chrome://browser/content/hiddenWindowMac.xhtml]
[task 2022-03-29T10:36:11.578Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (101e3b7d0) [pid = 1948] [serial = 8] [outer = 0] [url = about:blank]
[task 2022-03-29T10:36:11.586Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (12960cc00) [pid = 1948] [serial = 147] [outer = 0] [url = about:preferences#privacy]
[task 2022-03-29T10:36:11.612Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-03-29T10:36:11.625Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:128
[task 2022-03-29T10:36:11.645Z] 10:36:11     INFO - GECKO(1948) | [Parent 1948, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4465
[task 2022-03-29T10:36:11.665Z] 10:36:11     INFO - TEST-INFO | Main app process: exit 0
[task 2022-03-29T10:36:11.665Z] 10:36:11     INFO - TEST-INFO | Confirming we saw 115 DOCSHELL created and 115 destroyed log strings.
[task 2022-03-29T10:36:11.666Z] 10:36:11     INFO - TEST-INFO | Confirming we saw 339 DOMWINDOW created and 339 destroyed log strings.
[task 2022-03-29T10:36:11.666Z] 10:36:11    ERROR - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/siteData/browser_siteData2.js | leaked 2 window(s) until shutdown [url = chrome://browser/content/preferences/dialogs/siteDataSettings.xhtml]
[task 2022-03-29T10:36:11.667Z] 10:36:11    ERROR - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/siteData/browser_siteData2.js | leaked 2 window(s) until shutdown [url = about:preferences#privacy]
[task 2022-03-29T10:36:11.667Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData2.js | windows(s) leaked: [pid = 1948] [serial = 153], [pid = 1948] [serial = 147], [pid = 1948] [serial = 145], [pid = 1948] [serial = 163]
[task 2022-03-29T10:36:11.668Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData2.js | This test created 0 hidden window(s)
[task 2022-03-29T10:36:11.668Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData2.js | This test created 1 hidden docshell(s)
[task 2022-03-29T10:36:11.669Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_clearSiteData.js | This test created 0 hidden window(s)
[task 2022-03-29T10:36:11.669Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_clearSiteData.js | This test created 1 hidden docshell(s)
[task 2022-03-29T10:36:11.670Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData3.js | This test created 0 hidden window(s)
[task 2022-03-29T10:36:11.670Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData3.js | This test created 1 hidden docshell(s)
[task 2022-03-29T10:36:11.670Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData_multi_select.js | This test created 0 hidden window(s)
[task 2022-03-29T10:36:11.671Z] 10:36:11     INFO - TEST-INFO | browser/components/preferences/tests/siteData/browser_siteData_multi_select.js | This test created 1 hidden docshell(s)
[task 2022-03-29T10:36:11.671Z] 10:36:11     INFO - runtests.py | Application ran for: 0:00:52.839254
[task 2022-03-29T10:36:11.672Z] 10:36:11     INFO - zombiecheck | Reading PID log: /var/folders/8z/3p25yr494b34vv_m2bt1tp3c000014/T/tmpbz5_fg1upidlog
[task 2022-03-29T10:36:11.672Z] 10:36:11     INFO - ==> process 1948 launched child process 1949
[task 2022-03-29T10:36:11.672Z] 10:36:11     INFO - ==> process 1948 launched child process 1950
[task 2022-03-29T10:36:11.673Z] 10:36:11     INFO - ==> process 1948 launched child process 1955
[task 2022-03-29T10:36:11.673Z] 10:36:11     INFO - ==> process 1948 launched child process 1956
[task 2022-03-29T10:36:11.673Z] 10:36:11     INFO - ==> process 1948 launched child process 1957
[task 2022-03-29T10:36:11.674Z] 10:36:11     INFO - ==> process 1948 launched child process 1958
[task 2022-03-29T10:36:11.674Z] 10:36:11     INFO - ==> process 1948 launched child process 1959
[task 2022-03-29T10:36:11.674Z] 10:36:11     INFO - ==> process 1948 launched child process 1960
[task 2022-03-29T10:36:11.675Z] 10:36:11     INFO - ==> process 1948 launched child process 1961
[task 2022-03-29T10:36:11.675Z] 10:36:11     INFO - ==> process 1948 launched child process 1962
[task 2022-03-29T10:36:11.675Z] 10:36:11     INFO - ==> process 1948 launched child process 1963
[task 2022-03-29T10:36:11.676Z] 10:36:11     INFO - ==> process 1948 launched child process 1964
[task 2022-03-29T10:36:11.676Z] 10:36:11     INFO - ==> process 1948 launched child process 1965
[task 2022-03-29T10:36:11.676Z] 10:36:11     INFO - ==> process 1948 launched child process 1966
[task 2022-03-29T10:36:11.677Z] 10:36:11     INFO - ==> process 1948 launched child process 1967
[task 2022-03-29T10:36:11.677Z] 10:36:11     INFO - ==> process 1948 launched child process 1968
[task 2022-03-29T10:36:11.677Z] 10:36:11     INFO - ==> process 1948 launched child process 1969
[task 2022-03-29T10:36:11.678Z] 10:36:11     INFO - ==> process 1948 launched child process 1970
[task 2022-03-29T10:36:11.678Z] 10:36:11     INFO - ==> process 1948 launched child process 1975
[task 2022-03-29T10:36:11.678Z] 10:36:11     INFO - ==> process 1948 launched child process 1976
[task 2022-03-29T10:36:11.679Z] 10:36:11     INFO - ==> process 1948 launched child process 1981
[task 2022-03-29T10:36:11.679Z] 10:36:11     INFO - ==> process 1948 launched child process 1983
[task 2022-03-29T10:36:11.679Z] 10:36:11     INFO - ==> process 1948 launched child process 1982
[task 2022-03-29T10:36:11.679Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1949
[task 2022-03-29T10:36:11.680Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1950
[task 2022-03-29T10:36:11.680Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1955
[task 2022-03-29T10:36:11.680Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1956
[task 2022-03-29T10:36:11.681Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1957
[task 2022-03-29T10:36:11.681Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1958
[task 2022-03-29T10:36:11.681Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1959
[task 2022-03-29T10:36:11.682Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1960
[task 2022-03-29T10:36:11.682Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1961
[task 2022-03-29T10:36:11.682Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1962
[task 2022-03-29T10:36:11.683Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1963
[task 2022-03-29T10:36:11.683Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1964
[task 2022-03-29T10:36:11.683Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1965
[task 2022-03-29T10:36:11.684Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1966
[task 2022-03-29T10:36:11.684Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1967
[task 2022-03-29T10:36:11.684Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1968
[task 2022-03-29T10:36:11.685Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1969
[task 2022-03-29T10:36:11.685Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1970
[task 2022-03-29T10:36:11.685Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1975
[task 2022-03-29T10:36:11.686Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1976
[task 2022-03-29T10:36:11.686Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1981
[task 2022-03-29T10:36:11.686Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1982
[task 2022-03-29T10:36:11.687Z] 10:36:11     INFO - zombiecheck | Checking for orphan process with PID: 1983
[task 2022-03-29T10:36:11.687Z] 10:36:11     INFO - Stopping web server
[task 2022-03-29T10:36:11.687Z] 10:36:11     INFO - Server shut down.
[task 2022-03-29T10:36:11.749Z] 10:36:11     INFO - Web server killed.
[task 2022-03-29T10:36:11.750Z] 10:36:11     INFO - Stopping web socket server
[task 2022-03-29T10:36:11.867Z] 10:36:11     INFO - Stopping ssltunnel
[task 2022-03-29T10:36:12.016Z] 10:36:12     INFO - leakcheck | Processing log file /var/folders/8z/3p25yr494b34vv_m2bt1tp3c000014/T/tmp_t0cq1t3.mozrunner/runtests_leaks.log
[task 2022-03-29T10:36:12.017Z] 10:36:12     INFO - TEST-INFO | leakcheck | default process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.017Z] 10:36:12     INFO - TEST-INFO | leakcheck | tab process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.018Z] 10:36:12     INFO - TEST-INFO | leakcheck | gmplugin process: leak threshold set at 20000 bytes
[task 2022-03-29T10:36:12.018Z] 10:36:12     INFO - TEST-INFO | leakcheck | gpu process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.019Z] 10:36:12     INFO - TEST-INFO | leakcheck | vr process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.019Z] 10:36:12     INFO - TEST-INFO | leakcheck | rdd process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.019Z] 10:36:12     INFO - TEST-INFO | leakcheck | socket process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.020Z] 10:36:12     INFO - TEST-INFO | leakcheck | sandboxbroker process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.020Z] 10:36:12     INFO - TEST-INFO | leakcheck | forkserver process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.020Z] 10:36:12     INFO - TEST-INFO | leakcheck | utility process: leak threshold set at 0 bytes
[task 2022-03-29T10:36:12.021Z] 10:36:12     INFO - leakcheck | Processing leak log file /var/folders/8z/3p25yr494b34vv_m2bt1tp3c000014/T/tmp_t0cq1t3.mozrunner/runtests_leaks_tab_pid1950.log
[task 2022-03-29T10:36:12.021Z] 10:36:12     INFO - 
[task 2022-03-29T10:36:12.021Z] 10:36:12     INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1950
[task 2022-03-29T10:36:12.022Z] 10:36:12     INFO - 
[task 2022-03-29T10:36:12.022Z] 10:36:12     INFO -      |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2022-03-29T10:36:12.022Z] 10:36:12     INFO -      |                                      | Per-Inst   Leaked|   Total      Rem|
[task 2022-03-29T10:36:12.023Z] 10:36:12     INFO -    0 |TOTAL                                 |       68        0|   50051        0|
[task 2022-03-29T10:36:12.023Z] 10:36:12     INFO - 
[task 2022-03-29T10:36:12.023Z] 10:36:12     INFO - nsTraceRefcnt::DumpStatistics: 763 entries
[task 2022-03-29T10:36:12.024Z] 10:36:12     INFO - TEST-PASS | leakcheck | tab no leaks detected!
```