Bug: Intermittent [TV] browser/components/search/test/browser/browser_searchbar_context.js | leaked 1 window(s) until shutdown [url = chrome://browser/content/browser.xhtml]
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-10-06 10:44:35+00:00
Resolved: 2022-10-07 06:57:04+00:00

**Filed by:** smolnar [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=392413244&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WrZ72QhDTlm6ObO4mlijoA/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WrZ72QhDTlm6ObO4mlijoA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
INFO - GECKO(14895) | [Parent 14895, IPDL Background] WARNING: IPC Connection Error: [Parent][PBackgroundParent] RunMessage(msgname=PRemoteWorkerService::Msg___delete__) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1883
[task 2022-10-06T09:58:42.428Z] 09:58:42     INFO - GECKO(14895) | [Parent 14895, Compositor] WARNING: IPC Connection Error: [Parent][PImageBridgeParent] RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1883
[task 2022-10-06T09:58:43.384Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7fafb91db600) [pid = 14895] [serial = 49] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2022-10-06T09:58:43.398Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7fafa6a4cc00) [pid = 14895] [serial = 50] [outer = 0] [url = about:blank]
[task 2022-10-06T09:58:43.399Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (7fafe2b12c00) [pid = 14895] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-10-06T09:58:43.400Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7fb0058950e0) [pid = 14895] [serial = 1] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2022-10-06T09:58:43.402Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (7fafc3e6c480) [pid = 14895] [serial = 11] [outer = 0] [url = chrome://mochikit/content/browser-harness.xhtml]
[task 2022-10-06T09:58:43.403Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (7fafc307e400) [pid = 14895] [serial = 12] [outer = 0] [url = about:blank]
[task 2022-10-06T09:58:43.404Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (7fafa6a3d800) [pid = 14895] [serial = 54] [outer = 0] [url = about:blank]
[task 2022-10-06T09:58:43.405Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7fb005897180) [pid = 14895] [serial = 3] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2022-10-06T09:58:43.407Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7fafe2b10800) [pid = 14895] [serial = 5] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2022-10-06T09:58:43.408Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fafd1446c60) [pid = 14895] [serial = 8] [outer = 0] [url = resource://gre-resources/hiddenWindow.html]
[task 2022-10-06T09:58:43.409Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fafd1443430) [pid = 14895] [serial = 6] [outer = 0] [url = about:blank]
[task 2022-10-06T09:58:43.411Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fafc7f61c00) [pid = 14895] [serial = 10] [outer = 0] [url = resource://gre-resources/hiddenWindow.html]
[task 2022-10-06T09:58:43.439Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3385
[task 2022-10-06T09:58:43.476Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2022-10-06T09:58:43.504Z] 09:58:43     INFO - GECKO(14895) | [Parent 14895, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4630
[task 2022-10-06T09:58:43.528Z] 09:58:43     INFO - TEST-INFO | Main app process: exit 0
[task 2022-10-06T09:58:43.530Z] 09:58:43     INFO - TEST-INFO | Confirming we saw 54 DOCSHELL created and 54 destroyed log strings.
[task 2022-10-06T09:58:43.532Z] 09:58:43     INFO - TEST-INFO | Confirming we saw 131 DOMWINDOW created and 131 destroyed log strings.
[task 2022-10-06T09:58:43.533Z] 09:58:43    ERROR - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_searchbar_context.js | leaked 1 window(s) until shutdown [url = chrome://browser/content/browser.xhtml]
[task 2022-10-06T09:58:43.536Z] 09:58:43    ERROR - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_searchbar_context.js | leaked 1 window(s) until shutdown [url = about:blank]
[task 2022-10-06T09:58:43.537Z] 09:58:43     INFO - TEST-INFO | browser/components/search/test/browser/browser_searchbar_context.js | windows(s) leaked: [pid = 14895] [serial = 49], [pid = 14895] [serial = 50]
[task 2022-10-06T09:58:43.540Z] 09:58:43     INFO - TEST-INFO | browser/components/search/test/browser/browser_searchbar_context.js | This test created 1 hidden window(s)
```