Bug: Intermittent [TV] browser/components/urlbar/tests/browser/browser_searchMode_preview.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_preview.js:48 - TypeError: can't access proper
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-10-06 00:24:32+00:00
Resolved: 2021-08-17 17:05:52+00:00

**Filed by:** nbeleuzu [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=317667738&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ECjLIEj9Rc2J3LGe_dWDtA/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/ECjLIEj9Rc2J3LGe_dWDtA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2020-10-05T21:44:47.023Z] 21:44:47     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_preview.js | Expected placeholder l10n when search mode is active - {"args":null,"id":"urlbar-placeholder-search-mode-other-history"} deepEqual {"id":"urlbar-placeholder-search-mode-other-history","args":null} - 
[task 2020-10-05T21:44:47.024Z] 21:44:47     INFO - Buffered messages finished
[task 2020-10-05T21:44:47.024Z] 21:44:47     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_preview.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_preview.js:48 - TypeError: can't access property "engine", button is undefined
[task 2020-10-05T21:44:47.024Z] 21:44:47     INFO - Stack trace:
[task 2020-10-05T21:44:47.024Z] 21:44:47     INFO - getExpectedSearchMode@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_preview.js:48:7
[task 2020-10-05T21:44:47.024Z] 21:44:47     INFO - fullSearchMode_oneOff_restore_on_down@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_preview.js:450:49
[task 2020-10-05T21:44:47.024Z] 21:44:47     INFO - Leaving test bound fullSearchMode_oneOff_restore_on_down
[task 2020-10-05T21:44:47.356Z] 21:44:47     INFO - GECKO(2356) | [Parent 2356, Main Thread] WARNING: Suboptimal indexes for the SQL statement 0x11e981970 (http://mzl.la/1FuID0j).: file /builds/worker/checkouts/gecko/storage/mozStoragePrivateHelpers.cpp, line 113
[task 2020-10-05T21:44:47.566Z] 21:44:47     INFO - GECKO(2356) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2020-10-05T21:44:47.567Z] 21:44:47     INFO - GECKO(2356) | MEMORY STAT | vsize 7589MB | residentFast 323MB | heapAllocated 133MB
[task 2020-10-05T21:44:47.567Z] 21:44:47     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_searchMode_preview.js | took 22039ms
[task 2020-10-05T21:44:47.600Z] 21:44:47     INFO - GECKO(2356) | [Child 2358: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x117e13c00 == 1 [pid = 2358] [id = 2]
[task 2020-10-05T21:44:47.600Z] 21:44:47     INFO - GECKO(2356) | [Child 2358: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (0x110e09480) [pid = 2358] [serial = 8] [outer = 0x0]
[task 2020-10-05T21:44:47.600Z] 21:44:47     INFO - GECKO(2356) | [Child 2358: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (0x1183c8400) [pid = 2358] [serial = 9] [outer = 0x110e09480]
[task 2020-10-05T21:44:47.716Z] 21:44:47     INFO - checking window state
[task 2020-10-05T21:44:47.983Z] 21:44:47     INFO - GECKO(2356) | [Parent 2356, Main Thread] WARNING: 'NS_FAILED(targetPrincipal->GetAsciiOrigin(targetOrigin))', file /builds/worker/checkouts/gecko/toolkit/components/antitracking/AntiTrackingUtils.cpp, line 347
[task 2020-10-05T21:44:47.983Z] 21:44:47     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (0x156225000) [pid = 2356] [serial = 15] [outer = 0x122911d40]
[task 2020-10-05T21:44:48.007Z] 21:44:48     INFO - GECKO(2356) | [Parent 2356, Main Thread] WARNING: 'NS_FAILED(targetPrincipal->GetAsciiOrigin(targetOrigin))', file /builds/worker/checkouts/gecko/toolkit/components/antitracking/AntiTrackingUtils.cpp, line 347
[task 2020-10-05T21:44:48.219Z] 21:44:48     INFO - GECKO(2356) | [Parent 2356, Main Thread] WARNING: NS_ENSURE_TRUE(presShell) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp, line 4278
[task 2020-10-05T21:44:48.361Z] 21:44:48     INFO - GECKO(2356) | [Child 2366: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x112d4f800 == 0 [pid = 2366] [id = 0] [url = about:blank]
[task 2020-10-05T21:44:48.381Z] 21:44:48     INFO - GECKO(2356) | [Child 2358: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (0x1183c1000) [pid = 2358] [serial = 6] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:48.381Z] 21:44:48     INFO - GECKO(2356) | [Child 2358: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (0x1183cdc00) [pid = 2358] [serial = 7] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:48.817Z] 21:44:48     INFO - GECKO(2356) | [Child 2365: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (0x10bf09480) [pid = 2365] [serial = 1] [outer = 0x0] [url = about:newtab]
[task 2020-10-05T21:44:48.817Z] 21:44:48     INFO - GECKO(2356) | [Child 2365: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x113548400 == 0 [pid = 2365] [id = 0] [url = about:newtab]
[task 2020-10-05T21:44:49.814Z] 21:44:49     INFO - GECKO(2356) | [Child 2365: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (0x1135c6400) [pid = 2365] [serial = 3] [outer = 0x0] [url = about:newtab]
[task 2020-10-05T21:44:49.814Z] 21:44:49     INFO - GECKO(2356) | [Child 2366: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (0x112dcdc00) [pid = 2366] [serial = 2] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:49.815Z] 21:44:49     INFO - GECKO(2356) | [Child 2366: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (0x10e409480) [pid = 2366] [serial = 1] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:50.005Z] 21:44:50     INFO - GECKO(2356) | [Child 2367, Main Thread] WARNING: nsAppShell::Exit() called redundantly: file /builds/worker/checkouts/gecko/widget/cocoa/nsAppShell.mm, line 714
[task 2020-10-05T21:44:50.005Z] 21:44:50     INFO - GECKO(2356) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2020-10-05T21:44:50.033Z] 21:44:50     INFO - GECKO(2356) | [Child 2367, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp, line 3359
[task 2020-10-05T21:44:50.035Z] 21:44:50     INFO - GECKO(2356) | [Child 2367, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp, line 4287
[task 2020-10-05T21:44:50.892Z] 21:44:50     INFO - GECKO(2356) | Completed ShutdownLeaks collections in process 2366
[task 2020-10-05T21:44:51.078Z] 21:44:51     INFO - GECKO(2356) | Completed ShutdownLeaks collections in process 2358
[task 2020-10-05T21:44:51.078Z] 21:44:51     INFO - GECKO(2356) | Completed ShutdownLeaks collections in process 2365
[task 2020-10-05T21:44:51.084Z] 21:44:51     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (0x150a2b870) [pid = 2356] [serial = 9] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:51.084Z] 21:44:51     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (0x150a2ba40) [pid = 2356] [serial = 10] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:51.084Z] 21:44:51     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (0x152cc0c00) [pid = 2356] [serial = 11] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:51.084Z] 21:44:51     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (0x152cc0800) [pid = 2356] [serial = 12] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:51.256Z] 21:44:51     INFO - GECKO(2356) | Completed ShutdownLeaks collections in process 2357
[task 2020-10-05T21:44:51.717Z] 21:44:51     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (0x145254400) [pid = 2356] [serial = 8] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:52.484Z] 21:44:52     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (0x117ae7400) [pid = 2356] [serial = 16] [outer = 0x122911d40]
[task 2020-10-05T21:44:54.696Z] 21:44:54     INFO - GECKO(2356) | [Parent 2356: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (0x156225000) [pid = 2356] [serial = 15] [outer = 0x0] [url = about:blank]
[task 2020-10-05T21:44:55.206Z] 21:44:55     INFO - GECKO(2356) | Completed ShutdownLeaks collections in process 2356```