Bug: Intermittent browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:131 - TypeError: element is undefined
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-05-20 15:25:31+00:00
Resolved: 2021-09-07 17:04:58+00:00

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

---
```
[task 2021-05-20T13:34:11.572Z] 13:34:11     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js
[task 2021-05-20T13:34:11.588Z] 13:34:11     INFO - GECKO(3075) | [Parent 3075: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f30555ef000 == 6 [pid = 3075] [id = {830ef967-4bec-4cdb-b872-f9b99d62a1c6}]
[task 2021-05-20T13:34:11.588Z] 13:34:11     INFO - GECKO(3075) | [Parent 3075: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 23 (0x7f3053619870) [pid = 3075] [serial = 59] [outer = (nil)]
[task 2021-05-20T13:34:11.591Z] 13:34:11     INFO - GECKO(3075) | [Parent 3075: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 24 (0x7f305581bc00) [pid = 3075] [serial = 60] [outer = 0x7f3053619870]
[task 2021-05-20T13:34:11.754Z] 13:34:11     INFO - GECKO(3075) | [Parent 3075: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 25 (0x7f3055fb2400) [pid = 3075] [serial = 61] [outer = 0x7f3053619870]
[task 2021-05-20T13:34:11.810Z] 13:34:11     INFO - TEST-INFO | started process screentopng
[task 2021-05-20T13:34:12.119Z] 13:34:12     INFO - TEST-INFO | screentopng: exit 0
[task 2021-05-20T13:34:12.120Z] 13:34:12     INFO - Buffered messages logged at 13:34:11
[task 2021-05-20T13:34:12.120Z] 13:34:12     INFO - Entering test bound switchToTab
[task 2021-05-20T13:34:12.120Z] 13:34:12     INFO - Buffered messages finished
[task 2021-05-20T13:34:12.121Z] 13:34:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:131 - TypeError: element is undefined
[task 2021-05-20T13:34:12.121Z] 13:34:12     INFO - Stack trace:
[task 2021-05-20T13:34:12.121Z] 13:34:12     INFO - getDetailsOfResultAt@resource://testing-common/UrlbarTestUtils.jsm:131:18
[task 2021-05-20T13:34:12.121Z] 13:34:12     INFO - Leaving test bound switchToTab
[task 2021-05-20T13:34:12.121Z] 13:34:12     INFO - Entering test bound searchSuggestions
[task 2021-05-20T13:34:12.122Z] 13:34:12     INFO - GECKO(3075) | [Child 3244, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805303F4 (NS_ERROR_DOM_BAD_URI): file /builds/worker/checkouts/gecko/dom/security/nsContentSecurityManager.cpp, line 1117
[task 2021-05-20T13:34:12.124Z] 13:34:12     INFO - GECKO(3075) | [Child 3244, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805303F4 (NS_ERROR_DOM_BAD_URI): file /builds/worker/checkouts/gecko/dom/security/nsContentSecurityManager.cpp, line 977
[task 2021-05-20T13:34:12.124Z] 13:34:12     INFO - GECKO(3075) | [Child 3244, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805303F4 (NS_ERROR_DOM_BAD_URI): file /builds/worker/checkouts/gecko/dom/security/nsContentSecurityManager.cpp, line 1117
[task 2021-05-20T13:34:12.125Z] 13:34:12     INFO - GECKO(3075) | [Child 3244, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805303F4 (NS_ERROR_DOM_BAD_URI): file /builds/worker/checkouts/gecko/dom/security/nsContentSecurityManager.cpp, line 977
[task 2021-05-20T13:34:12.125Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp, line 1616
[task 2021-05-20T13:34:12.126Z] 13:34:12     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2021-05-20T13:34:12.127Z] 13:34:12     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2021-05-20T13:34:12.163Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Should get at least heuristic result + two search suggestions - 3 >= 3 - 
[task 2021-05-20T13:34:12.164Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Should still have expected searches remaining - 3 >= 0 - 
[task 2021-05-20T13:34:12.199Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp, line 135
[task 2021-05-20T13:34:12.200Z] 13:34:12     INFO - GECKO(3075) | (firefox:3075): GLib-GObject-CRITICAL **: 13:34:12.192: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed
[task 2021-05-20T13:34:12.201Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp, line 135
[task 2021-05-20T13:34:12.202Z] 13:34:12     INFO - GECKO(3075) | (firefox:3075): GLib-GObject-CRITICAL **: 13:34:12.192: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed
[task 2021-05-20T13:34:12.270Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Check result label - "foo — Search with browser_searchSuggestionEngine searchSuggestionEngine.xml" == "foo — Search with browser_searchSuggestionEngine searchSuggestionEngine.xml" - 
[task 2021-05-20T13:34:12.270Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Should still have expected searches remaining - 2 >= 0 - 
[task 2021-05-20T13:34:12.371Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Check result label - "foo foo— Search with browser_searchSuggestionEngine searchSuggestionEngine.xml" == "foo foo— Search with browser_searchSuggestionEngine searchSuggestionEngine.xml" - 
[task 2021-05-20T13:34:12.378Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Should still have expected searches remaining - 1 >= 0 - 
[task 2021-05-20T13:34:12.440Z] 13:34:12     INFO - GECKO(3075) | [Child 3219: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7fc7b9098800 == 4 [pid = 3219] [id = {4804e001-16cc-4da4-b7d1-f756e18b29e2}] [url = http://example.com/]
[task 2021-05-20T13:34:12.440Z] 13:34:12     INFO - GECKO(3075) | [Child 3219: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7fc7b909ac00 == 3 [pid = 3219] [id = {0a74971f-7066-4454-bd5a-3700522865cc}] [url = http://example.com/]
[task 2021-05-20T13:34:12.441Z] 13:34:12     INFO - GECKO(3075) | [Child 3219: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 19 (0x7fc7b8773c00) [pid = 3219] [serial = 34] [outer = (nil)] [url = about:blank]
[task 2021-05-20T13:34:12.441Z] 13:34:12     INFO - GECKO(3075) | [Child 3219: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7fc7b779e800 == 2 [pid = 3219] [id = {09fdd96a-d0f9-400a-ab19-7655eac3aaa0}] [url = http://example.com/]
[task 2021-05-20T13:34:12.442Z] 13:34:12     INFO - GECKO(3075) | [Child 3219: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7fc7b779fc00 == 1 [pid = 3219] [id = {a2b4e07e-6dc7-4a42-a846-6dde0c565ad2}] [url = http://example.com/]
[task 2021-05-20T13:34:12.482Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Check result label - "foo bar— Search with browser_searchSuggestionEngine searchSuggestionEngine.xml" == "foo bar— Search with browser_searchSuggestionEngine searchSuggestionEngine.xml" - 
[task 2021-05-20T13:34:12.482Z] 13:34:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | true == true - 
[task 2021-05-20T13:34:12.482Z] 13:34:12     INFO - Leaving test bound searchSuggestions
[task 2021-05-20T13:34:12.530Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp, line 1616
[task 2021-05-20T13:34:12.533Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp, line 135
[task 2021-05-20T13:34:12.533Z] 13:34:12     INFO - GECKO(3075) | (firefox:3075): GLib-GObject-CRITICAL **: 13:34:12.531: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed
[task 2021-05-20T13:34:12.596Z] 13:34:12     INFO - GECKO(3075) | MEMORY STAT | vsize 3219MB | residentFast 448MB | heapAllocated 184MB
[task 2021-05-20T13:34:12.596Z] 13:34:12     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | took 1026ms
[task 2021-05-20T13:34:12.599Z] 13:34:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-05-20T13:34:12.600Z] 13:34:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autocomplete_a11y_label.js | Found an unexpected tab at the end of test run: about:robots - 
[task 2021-05-20T13:34:12.615Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/JSWindowActorProtocol.cpp, line 172
[task 2021-05-20T13:34:12.616Z] 13:34:12     INFO - GECKO(3075) | [Parent 3075, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/JSWindowActorProtocol.cpp, line 172
[task 2021-05-20T13:34:12.644Z] 13:34:12     INFO - GECKO(3075) | [Child 3136: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f0fb7bba000 == 2 [pid = 3136] [id = {8a526cc1-0ac4-4aaf-a691-285547e9f01c}]
[task 2021-05-20T13:34:12.644Z] 13:34:12     INFO - GECKO(3075) | [Child 3136: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (0x7f0fd288d180) [pid = 3136] [serial = 45] [outer = (nil)]
[task 2021-05-20T13:34:12.644Z] 13:34:12     INFO - GECKO(3075) | [Child 3136: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (0x7f0fb7bbb400) [pid = 3136] [serial = 46] [outer = 0x7f0fd288d180]
[task 2021-05-20T13:34:12.680Z] 13:34:12     INFO - GECKO(3075) | [Child 3136: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (0x7f0fbd19b400) [pid = 3136] [serial = 47] [outer = 0x7f0fd288d180]
[task 2021-05-20T13:34:12.756Z] 13:34:12     INFO - checking window state```