Bug: Intermittent browser/components/search/test/browser/browser_contentSearchUI.js | State -     Structures begin differing at:
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-03-22 17:35:53+00:00
Resolved: 2021-04-20 17:07:51+00:00

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

---
```
[task 2021-03-22T15:56:06.573Z] 15:56:06     INFO - TEST-START | browser/components/search/test/browser/browser_contentSearchUI.js
[task 2021-03-22T15:56:06.730Z] 15:56:06     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10c420000 == 2 [pid = 2245] [id = 2]
[task 2021-03-22T15:56:06.730Z] 15:56:06     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (105221e40) [pid = 2245] [serial = 6] [outer = 0]
[task 2021-03-22T15:56:06.730Z] 15:56:06     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (10c4f2400) [pid = 2245] [serial = 7] [outer = 105221e40]
[task 2021-03-22T15:56:06.801Z] 15:56:06     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (10c8b6000) [pid = 2245] [serial = 8] [outer = 105221e40]
[task 2021-03-22T15:56:07.080Z] 15:56:07     INFO - GECKO(2241) | [Child 2244: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1217c2800 == 2 [pid = 2244] [id = 1]
[task 2021-03-22T15:56:07.080Z] 15:56:07     INFO - GECKO(2241) | [Child 2244: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (123d33740) [pid = 2244] [serial = 4] [outer = 0]
[task 2021-03-22T15:56:07.081Z] 15:56:07     INFO - GECKO(2241) | [Child 2244: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (1217c4000) [pid = 2244] [serial = 5] [outer = 123d33740]
[task 2021-03-22T15:56:07.125Z] 15:56:07     INFO - GECKO(2241) | [Child 2244: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (123df0c00) [pid = 2244] [serial = 6] [outer = 123d33740]
[task 2021-03-22T15:56:07.325Z] 15:56:07     INFO - GECKO(2241) | [Child 2242, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:07.325Z] 15:56:07     INFO - GECKO(2241) | [Child 2242, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:07.325Z] 15:56:07     INFO - GECKO(2241) | [Child 2242, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:07.326Z] 15:56:07     INFO - GECKO(2241) | [Child 2242, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:07.326Z] 15:56:07     INFO - GECKO(2241) | [Child 2243, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:07.326Z] 15:56:07     INFO - GECKO(2241) | [Child 2244, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:07.326Z] 15:56:07     INFO - GECKO(2241) | [Child 2244, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-03-22T15:56:08.118Z] 15:56:08     INFO - GECKO(2241) | [Child 2246: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (10d4cf000) [pid = 2246] [serial = 4] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/test.html?test=test]
[task 2021-03-22T15:56:08.118Z] 15:56:08     INFO - GECKO(2241) | [Child 2246: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (10d4c8000) [pid = 2246] [serial = 3] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/test.html?test=test]
[task 2021-03-22T15:56:08.118Z] 15:56:08     INFO - GECKO(2241) | [Child 2246: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (10ccb4000) [pid = 2246] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.791Z] 15:56:08     INFO - GECKO(2241) | [Child 2244, Main Thread] WARNING: Failed to do command from nsIControllerCommand::DoCommand(): 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/editor/libeditor/EditorCommands.cpp:69
[task 2021-03-22T15:56:08.938Z] 15:56:08     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10e1f0400 == 1 [pid = 2243] [id = 3] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/browser_contentContextMenu.xhtml]
[task 2021-03-22T15:56:08.938Z] 15:56:08     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (10e1f3c00) [pid = 2243] [serial = 11] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.938Z] 15:56:08     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (1102e2800) [pid = 2243] [serial = 7] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/test.html?test=test]
[task 2021-03-22T15:56:08.938Z] 15:56:08     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (1102de000) [pid = 2243] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.938Z] 15:56:08     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (10e1ef800) [pid = 2243] [serial = 9] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.939Z] 15:56:08     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (10e1f4400) [pid = 2243] [serial = 3] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.981Z] 15:56:08     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (10c4f2800) [pid = 2245] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.981Z] 15:56:08     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (10c8b2000) [pid = 2245] [serial = 3] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/test.html?test=test]
[task 2021-03-22T15:56:08.982Z] 15:56:08     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10c4f6800 == 1 [pid = 2245] [id = 1] [url = about:blank]
[task 2021-03-22T15:56:08.982Z] 15:56:08     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10c420000 == 0 [pid = 2245] [id = 2] [url = about:blank]
[task 2021-03-22T15:56:08.982Z] 15:56:08     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (105221e40) [pid = 2245] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:08.982Z] 15:56:08     INFO - GECKO(2241) | [Child 2245: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (10c886200) [pid = 2245] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:09.081Z] 15:56:09     INFO - GECKO(2241) | [Child 2243: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (10b98c740) [pid = 2243] [serial = 10] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/browser_contentContextMenu.xhtml]
[task 2021-03-22T15:56:09.168Z] 15:56:09     INFO - GECKO(2241) | [Child 2247: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (109bc0000) [pid = 2247] [serial = 3] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/test.html?test=test]
[task 2021-03-22T15:56:09.168Z] 15:56:09     INFO - GECKO(2241) | [Child 2247: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (1094c9000) [pid = 2247] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:09.168Z] 15:56:09     INFO - GECKO(2241) | [Child 2247: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (1094cd800) [pid = 2247] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:09.272Z] 15:56:09     INFO - GECKO(2241) | [Child 2248: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (11d7d4400) [pid = 2248] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:09.272Z] 15:56:09     INFO - GECKO(2241) | [Child 2248: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (11d3f5800) [pid = 2248] [serial = 3] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/search/test/browser/test.html?test=test]
[task 2021-03-22T15:56:09.272Z] 15:56:09     INFO - GECKO(2241) | [Child 2248: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (11d3f0400) [pid = 2248] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:10.166Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.170Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.171Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.171Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.171Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.172Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.172Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.172Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.172Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.172Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1205ae000 == 6 [pid = 2241] [id = 4] [url = about:blank]
[task 2021-03-22T15:56:10.172Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 12830e000 == 5 [pid = 2241] [id = 5] [url = about:blank]
[task 2021-03-22T15:56:10.173Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.200Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241, Main Thread] WARNING: Wrong button set to eContextMenu event?: 'mMessage != eContextMenu || (mButton == ((mContextMenuTrigger == eNormal) ? MouseButton::eSecondary : MouseButton::ePrimary) && (mContextMenuTrigger != eControlClick || IsControl()))', file /builds/worker/workspace/obj-build/dist/include/mozilla/MouseEvents.h:244
[task 2021-03-22T15:56:10.457Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (12a838740) [pid = 2241] [serial = 10] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:10.457Z] 15:56:10     INFO - GECKO(2241) | [Parent 2241: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (12a838580) [pid = 2241] [serial = 9] [outer = 0] [url = about:blank]
[task 2021-03-22T15:56:10.869Z] 15:56:10     INFO - TEST-INFO | started process screencapture
[task 2021-03-22T15:56:10.952Z] 15:56:10     INFO - TEST-INFO | screencapture: exit 0
[task 2021-03-22T15:56:10.952Z] 15:56:10     INFO - Buffered messages logged at 15:56:06
[task 2021-03-22T15:56:10.952Z] 15:56:10     INFO - Entering test bound setup
[task 2021-03-22T15:56:10.953Z] 15:56:10     INFO - Extension loaded
[task 2021-03-22T15:56:10.953Z] 15:56:10     INFO - TEST-PASS | browser/components/search/test/browser/browser_contentSearchUI.js | Search provider extension should be running - "running" == "running" - 
<...>
[task 2021-03-22T15:56:10.976Z] 15:56:10     INFO - TEST-PASS | browser/components/search/test/browser/browser_contentSearchUI.js | State - 
[task 2021-03-22T15:56:10.976Z] 15:56:10     INFO - Buffered messages finished
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_contentSearchUI.js | State -     Structures begin differing at:
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - got['selectedIndex'] = 1
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - expected['selectedIndex'] = -1
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - 
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - Stack trace:
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.isDeeply:2051
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - chrome://mochitests/content/browser/browser/components/search/test/browser/browser_contentSearchUI.js:checkState:1068
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - chrome://mochitests/content/browser/browser/components/search/test/browser/browser_contentSearchUI.js:tabKey:464
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - Leaving test bound tabKey
[task 2021-03-22T15:56:10.977Z] 15:56:10     INFO - Entering test bound cycleSuggestions
[task 2021-03-22T15:56:11.252Z] 15:56:11     INFO - TEST-PASS | browser/components/search/test/browser/browser_contentSearchUI.js | State - ```