Bug: Intermittent browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-10-19 21:04:02+00:00
Resolved: 2022-11-15 17:01:13+00:00

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

---
```
[task 2022-10-19T20:23:40.022Z] 20:23:40     INFO - TEST-START | browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js
[task 2022-10-19T20:23:40.022Z] 20:23:40     INFO - GECKO(2570) | JavaScript error: resource://gre/modules/SearchService.sys.mjs, line 1251: Error: Something tried to use the search service before it's been properly intialized. Please examine the stack trace to figure out what and where to fix it:
[task 2022-10-19T20:23:40.023Z] 20:23:40     INFO - GECKO(2570) | #ensureInitialized@resource://gre/modules/SearchService.sys.mjs:1251:15
[task 2022-10-19T20:23:40.023Z] 20:23:40     INFO - GECKO(2570) | get defaultEngine@resource://gre/modules/SearchService.sys.mjs:196:28
[task 2022-10-19T20:23:40.024Z] 20:23:40     INFO - GECKO(2570) | viewUpdateAppendHidden/provider._results<@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:45:11
[task 2022-10-19T20:23:40.024Z] 20:23:40     INFO - GECKO(2570) | viewUpdateAppendHidden@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:36:36
[task 2022-10-19T20:23:40.025Z] 20:23:40     INFO - GECKO(2570) | handleTask@chrome://mochikit/content/browser-test.js:1045:26
[task 2022-10-19T20:23:40.025Z] 20:23:40     INFO - GECKO(2570) | _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1117:18
[task 2022-10-19T20:23:40.026Z] 20:23:40     INFO - TEST-INFO | started process screencapture
[task 2022-10-19T20:23:40.743Z] 20:23:40     INFO - TEST-INFO | screencapture: exit 0
[task 2022-10-19T20:23:40.743Z] 20:23:40     INFO - Buffered messages logged at 20:23:39
[task 2022-10-19T20:23:40.744Z] 20:23:40     INFO - Entering setup bound headInit
[task 2022-10-19T20:23:40.744Z] 20:23:40     INFO - Leaving setup bound headInit
[task 2022-10-19T20:23:40.744Z] 20:23:40     INFO - Entering test bound viewUpdateAppendHidden
[task 2022-10-19T20:23:40.744Z] 20:23:40     INFO - Buffered messages finished
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js | Uncaught exception in test - [Exception... "[JavaScript Error: "Something tried to use the search service before it's been properly intialized. Please examine the stack trace to figure out what and where to fix it:
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - #ensureInitialized@resource://gre/modules/SearchService.sys.mjs:1251:15
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - get defaultEngine@resource://gre/modules/SearchService.sys.mjs:196:28
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - viewUpdateAppendHidden/provider._results<@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:45:11
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - viewUpdateAppendHidden@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:36:36
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - handleTask@chrome://mochikit/content/browser-test.js:1045:26
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1117:18
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - " {file: "resource://gre/modules/SearchService.sys.mjs" line: 1251}]'[JavaScript Error: "Something tried to use the search service before it's been properly intialized. Please examine the stack trace to figure out what and where to fix it:
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - #ensureInitialized@resource://gre/modules/SearchService.sys.mjs:1251:15
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - get defaultEngine@resource://gre/modules/SearchService.sys.mjs:196:28
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - viewUpdateAppendHidden/provider._results<@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:45:11
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - viewUpdateAppendHidden@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:36:36
[task 2022-10-19T20:23:40.747Z] 20:23:40     INFO - handleTask@chrome://mochikit/content/browser-test.js:1045:26
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1117:18
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - " {file: "resource://gre/modules/SearchService.sys.mjs" line: 1251}]' when calling method: [nsISearchService::defaultEngine]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js :: viewUpdateAppendHidden/provider._results< :: line 45"  data: yes]
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - Stack trace:
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - viewUpdateAppendHidden/provider._results<@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:45:11
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - viewUpdateAppendHidden@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:36:36
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - handleTask@chrome://mochikit/content/browser-test.js:1045:26
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1117:18
[task 2022-10-19T20:23:40.748Z] 20:23:40     INFO - Leaving test bound viewUpdateAppendHidden
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - Console message: [JavaScript Error: "Error: Something tried to use the search service before it's been properly intialized. Please examine the stack trace to figure out what and where to fix it:
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - #ensureInitialized@resource://gre/modules/SearchService.sys.mjs:1251:15
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - get defaultEngine@resource://gre/modules/SearchService.sys.mjs:196:28
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - viewUpdateAppendHidden/provider._results<@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:45:11
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - viewUpdateAppendHidden@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:36:36
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - handleTask@chrome://mochikit/content/browser-test.js:1045:26
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1117:18
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - " {file: "resource://gre/modules/SearchService.sys.mjs" line: 1251}]
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - #ensureInitialized@resource://gre/modules/SearchService.sys.mjs:1251:15
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - get defaultEngine@resource://gre/modules/SearchService.sys.mjs:196:28
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - viewUpdateAppendHidden/provider._results<@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:45:11
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - viewUpdateAppendHidden@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js:36:36
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - handleTask@chrome://mochikit/content/browser-test.js:1045:26
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1117:18
[task 2022-10-19T20:23:40.750Z] 20:23:40     INFO - 
[task 2022-10-19T20:23:40.751Z] 20:23:40     INFO - Console message: 1666211020020	app.normandy.recipe-runner	WARN	Disabling Shield because app.normandy.api_url is not set.
[task 2022-10-19T20:23:40.751Z] 20:23:40     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "chrome://browser/content/default-bookmarks.html" line: 0}]
[task 2022-10-19T20:23:40.752Z] 20:23:40     INFO - GECKO(2570) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2022-10-19T20:23:40.752Z] 20:23:40     INFO - GECKO(2570) | MEMORY STAT | vsize 15418MB | residentFast 277MB | heapAllocated 134MB
[task 2022-10-19T20:23:40.752Z] 20:23:40     INFO - TEST-OK | browser/components/urlbar/tests/browser-updateResults/browser_appendSpanCount.js | took 970ms
[task 2022-10-19T20:23:40.753Z] 20:23:40     INFO - checking window state
[task 2022-10-19T20:23:40.753Z] 20:23:40     INFO - TEST-START | browser/components/urlbar/tests/browser-updateResults/browser_reuse.js
```