Bug: Intermittent browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:125 - TypeError: can't access property "result", element is undefined
Status: RESOLVED
Priority: P3
Resolution: FIXED
Created: 2020-05-01 12:57:07+00:00
Resolved: 2021-04-19 06:37:08+00:00

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

---

[task 2020-05-01T11:29:59.992Z] 11:29:59     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js
[task 2020-05-01T11:30:00.011Z] 11:30:00     INFO - GECKO(9940) | [Parent 7900: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 00000203B323CC00 == 6 [pid = 7900] [id = {816fba35-cacb-42bb-8413-8c2cd2ea00ef}]
[task 2020-05-01T11:30:00.011Z] 11:30:00     INFO - GECKO(9940) | [Parent 7900: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 21 (00000203B8FD82B0) [pid = 7900] [serial = 61] [outer = 0000000000000000]
[task 2020-05-01T11:30:00.016Z] 11:30:00     INFO - GECKO(9940) | [Parent 7900: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 22 (00000203B388E800) [pid = 7900] [serial = 62] [outer = 00000203B8FD82B0]
[task 2020-05-01T11:30:00.179Z] 11:30:00     INFO - GECKO(9940) | [Parent 7900: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 23 (00000203B8567000) [pid = 7900] [serial = 63] [outer = 00000203B8FD82B0]
[task 2020-05-01T11:30:00.280Z] 11:30:00     INFO - TEST-INFO | started process screenshot
[task 2020-05-01T11:30:00.361Z] 11:30:00     INFO - TEST-INFO | screenshot: exit 0
[task 2020-05-01T11:30:00.363Z] 11:30:00     INFO - Buffered messages logged at 11:30:00
[task 2020-05-01T11:30:00.363Z] 11:30:00     INFO - Entering test bound switchToTab
[task 2020-05-01T11:30:00.363Z] 11:30:00     INFO - Buffered messages finished
[task 2020-05-01T11:30:00.363Z] 11:30:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:125 - TypeError: can't access property "result", element is undefined
[task 2020-05-01T11:30:00.363Z] 11:30:00     INFO - Stack trace:
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - getDetailsOfResultAt@resource://testing-common/UrlbarTestUtils.jsm:125:18
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - async*switchToTab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js:60:38
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1045:34
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1080:11
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:910:14
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:918:23
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - Leaving test bound switchToTab
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - Entering test bound searchSuggestions
[task 2020-05-01T11:30:00.364Z] 11:30:00     INFO - GECKO(9940) | [Parent 7900, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp, line 1549
[task 2020-05-01T11:30:00.524Z] 11:30:00     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Should get at least heuristic result + two search suggestions - 4 >= 3 -