Bug: Intermittent browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | Uncaught exception - Waiting for top sites to be updated - timed out after 50 tries.
Status: RESOLVED
Priority: P3
Resolution: WORKSFORME
Created: 2020-09-21 19:24:41+00:00
Resolved: 2020-11-03 12:55:56+00:00

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

---
```
```
[task 2020-09-21T16:57:41.257Z] 16:57:41     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js
[task 2020-09-21T16:57:50.135Z] 16:57:50     INFO - TEST-INFO | started process screencapture
[task 2020-09-21T16:57:50.204Z] 16:57:50     INFO - TEST-INFO | screencapture: exit 0
[task 2020-09-21T16:57:50.204Z] 16:57:50     INFO - Buffered messages logged at 16:57:41
[task 2020-09-21T16:57:50.204Z] 16:57:50     INFO - Entering test bound setup
[task 2020-09-21T16:57:50.204Z] 16:57:50     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:57:50.204Z] 16:57:50     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Buffered messages finished
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | Uncaught exception - Waiting for top sites to be updated - timed out after 50 tries.
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Leaving test bound setup
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Entering test bound backspace
[task 2020-09-21T16:57:50.205Z] 16:57:50     INFO - Awaiting for the urlbar panel to open
[task 2020-09-21T16:57:50.469Z] 16:57:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | One-offs are visible - true == true - 
[task 2020-09-21T16:57:50.473Z] 16:57:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | Found one-off button for search mode - {"engine":{"_name":"browser_searchSuggestionEngine searchSuggestionEngine.xml","_loadPath":"[other]/searchSuggestionEngine.xml","description":"","__searchForm":null,"_iconURL":"","_metaData":{"loadPathHash":"6eiiiCOyHVt8/DM4wV7l9uApFLXJOD+1z7v+/Ld7fwg=","order":1},"_urls":[{"params":[],"rels":[],"resultDomain":"mochi.test","template":"http://mochi.test:8888/browser/browser/components/urlbar/tests/browser/searchSuggestionEngine.sjs?{searchTerms}","type":"application/x-suggestions+json"},{"params":[{"name":"terms","value":"{searchTerms}"}],"rels":["searchform"],"resultDomain":"mochi.test","template":"http://mochi.test:8888/"}],"_isAppProvided":false,"_orderHint":null,"_telemetryId":null,"_updateInterval":null,"_updateURL":null,"_iconUpdateURL":null,"_extensionID":null,"_locale":null,"_definedAliases":[],"_hasPreferredIcon":null,"queryCharset":"UTF-8"},"_inheritedElements":{".button-icon":{}},"initializedAttributeInheritance":true} == true - 
[task 2020-09-21T16:57:50.480Z] 16:57:50     INFO - Awaiting for the urlbar panel to open
[task 2020-09-21T16:57:50.480Z] 16:57:50     INFO - Console message: [JavaScript Warning: "browser.ui.interaction.nav_bar - The key length must be limited to 72 characters."]
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - GECKO(1730) | JavaScript error: chrome://browser/content/places/browserPlacesViews.js, line 131: Error: No DOM node set for aPlacesNode.
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - GECKO(1730) | node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - Console message: [JavaScript Error: "Error: No DOM node set for aPlacesNode.
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]" {file: "chrome://browser/content/places/browserPlacesViews.js" line: 131}]
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - PVB__getDOMNodeForPlacesNode@chrome://browser/content/places/browserPlacesViews.js:131:13
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - PVB_nodeTitleChanged@chrome://browser/content/places/browserPlacesViews.js:493:20
[task 2020-09-21T16:57:50.529Z] 16:57:50     INFO - 
[task 2020-09-21T16:58:26.253Z] 16:58:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:26.254Z] 16:58:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | Test timed out - 
[task 2020-09-21T16:58:26.293Z] 16:58:26     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:26.293Z] 16:58:26     INFO - GECKO(1730) | MEMORY STAT | vsize 7784MB | residentFast 455MB | heapAllocated 149MB
[task 2020-09-21T16:58:26.293Z] 16:58:26     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | took 45046ms
[task 2020-09-21T16:58:26.308Z] 16:58:26     INFO - checking window state
[task 2020-09-21T16:58:26.325Z] 16:58:26     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js
[task 2020-09-21T16:58:26.632Z] 16:58:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:26.633Z] 16:58:26     INFO - Buffered messages logged at 16:58:26
[task 2020-09-21T16:58:26.633Z] 16:58:26     INFO - Entering test bound setup
[task 2020-09-21T16:58:26.633Z] 16:58:26     INFO - Leaving test bound setup
[task 2020-09-21T16:58:26.633Z] 16:58:26     INFO - Entering test bound incompleteAlias
[task 2020-09-21T16:58:26.634Z] 16:58:26     INFO - Awaiting for the urlbar panel to open
[task 2020-09-21T16:58:26.634Z] 16:58:26     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:26.634Z] 16:58:26     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:26.634Z] 16:58:26     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:26.639Z] 16:58:26     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:26.639Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar view is still open. - true == true - 
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - Buffered messages finished
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected searchMode - null deepEqual {"engineName":"browser_searchSuggestionEngine searchSuggestionEngine.xml","entry":"oneoff","isPreview":false} - JS frame :: resource://testing-common/UrlbarTestUtils.jsm :: assertSearchMode :: line 431
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - Stack trace:
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:assertSearchMode:431
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:enterSearchMode:571
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:26.640Z] 16:58:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected textContent - "" == "browser_searchSuggestionEngine searchSuggestionEngine.xml" - JS frame :: resource://testing-common/UrlbarTestUtils.jsm :: assertSearchMode :: line 455
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - Stack trace:
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:assertSearchMode:455
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:enterSearchMode:571
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected textContent - "" == "browser_searchSuggestionEngine searchSuggestionEngine.xml" - JS frame :: resource://testing-common/UrlbarTestUtils.jsm :: assertSearchMode :: line 455
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - Stack trace:
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:assertSearchMode:455
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:enterSearchMode:571
[task 2020-09-21T16:58:26.641Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected placeholder l10n when search mode is active - {"args":null,"id":"urlbar-placeholder"} deepEqual {"id":"urlbar-placeholder-search-mode-other-engine","args":{"name":"browser_searchSuggestionEngine searchSuggestionEngine.xml"}} - JS frame :: resource://testing-common/UrlbarTestUtils.jsm :: assertSearchMode :: line 484
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - Stack trace:
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:assertSearchMode:484
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - resource://testing-common/UrlbarTestUtils.jsm:enterSearchMode:571
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | gURLBar.searchMode not expected - true == true - 
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected placeholder l10n when search mode is inactive - {"args":null,"id":"urlbar-placeholder"} deepEqual {"id":"urlbar-placeholder","args":null} - 
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Search mode result matches engine name. - "browser_searchSuggestionEngine searchSuggestionEngine.xml" == "browser_searchSuggestionEngine searchSuggestionEngine.xml" - 
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchModeIndicator.js | Uncaught exception received from previously timed out test - at chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchModeIndicator.js:75 - TypeError: can't access property "equal", Assert is null
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - Stack trace:
[task 2020-09-21T16:58:26.642Z] 16:58:26     INFO - verifySearchModeResultsAdded@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchModeIndicator.js:75:3
[task 2020-09-21T16:58:26.643Z] 16:58:26     INFO - backspace@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchModeIndicator.js:138:9
[task 2020-09-21T16:58:26.821Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2020-09-21T16:58:26.821Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | gURLBar.searchMode not expected - true == true - 
[task 2020-09-21T16:58:26.821Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected placeholder l10n when search mode is inactive - {"args":null,"id":"urlbar-placeholder"} deepEqual {"id":"urlbar-placeholder","args":null} - 
[task 2020-09-21T16:58:26.822Z] 16:58:26     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | The typed value should be unchanged except for the space. - "testalia " == "testalia " - 
[task 2020-09-21T16:58:26.822Z] 16:58:26     INFO - Leaving test bound incompleteAlias
[task 2020-09-21T16:58:26.822Z] 16:58:26     INFO - Entering test bound noTrailingSpace
[task 2020-09-21T16:58:26.824Z] 16:58:26     INFO - Awaiting for the urlbar panel to open
[task 2020-09-21T16:58:27.129Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2020-09-21T16:58:27.129Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | gURLBar.searchMode not expected - true == true - 
[task 2020-09-21T16:58:27.129Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected placeholder l10n when search mode is inactive - {"args":null,"id":"urlbar-placeholder"} deepEqual {"id":"urlbar-placeholder","args":null} - 
[task 2020-09-21T16:58:27.129Z] 16:58:27     INFO - Leaving test bound noTrailingSpace
[task 2020-09-21T16:58:27.129Z] 16:58:27     INFO - Entering test bound noTrailingSpace_typed
[task 2020-09-21T16:58:27.129Z] 16:58:27     INFO - Awaiting for the urlbar panel to open
[task 2020-09-21T16:58:27.344Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2020-09-21T16:58:27.344Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | gURLBar.searchMode not expected - true == true - 
[task 2020-09-21T16:58:27.344Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Expected placeholder l10n when search mode is inactive - {"args":null,"id":"urlbar-placeholder"} deepEqual {"id":"urlbar-placeholder","args":null} - 
[task 2020-09-21T16:58:27.596Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2020-09-21T16:58:27.596Z] 16:58:27     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_alias_replacement.js | gURLBar.searchMode not expected - true == true - 
<...>
[task 2020-09-21T16:58:29.160Z] 16:58:29     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_searchMode_autofill.js
[task 2020-09-21T16:58:29.167Z] 16:58:29     INFO - GECKO(1730) | JavaScript error: chrome://browser/content/places/browserPlacesViews.js, line 131: Error: No DOM node set for aPlacesNode.
[task 2020-09-21T16:58:29.167Z] 16:58:29     INFO - GECKO(1730) | node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]
[task 2020-09-21T16:58:30.392Z] 16:58:30     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Buffered messages logged at 16:58:29
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Entering test bound setup
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Console message: [JavaScript Error: "Error: No DOM node set for aPlacesNode.
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]" {file: "chrome://browser/content/places/browserPlacesViews.js" line: 131}]
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - PVB__getDOMNodeForPlacesNode@chrome://browser/content/places/browserPlacesViews.js:131:13
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - PVB_nodeTitleChanged@chrome://browser/content/places/browserPlacesViews.js:493:20
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - 
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Buffered messages logged at 16:58:30
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Leaving test bound setup
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Entering test bound remote
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Sanity check: we autofill in a normal search.
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Awaiting for the urlbar panel to open
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Console message: [JavaScript Error: "Security Error: Content at about:newtab may not load or link to chrome://mozapps/skin/places/defaultFavicon.svg."]
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Buffered messages finished
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_autofill.js | We're autofilling. - false == true - JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_autofill.js :: remote :: line 54
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Stack trace:
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_autofill.js:remote:54
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-09-21T16:58:30.393Z] 16:58:30     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_autofill.js | Urlbar contains the autofilled URL. - "ex" == "example.com/" - JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_autofill.js :: remote :: line 55
[task 2020-09-21T16:58:30.394Z] 16:58:30     INFO - Stack trace:
[task 2020-09-21T16:58:30.394Z] 16:58:30     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_autofill.js:remote:55
[task 2020-09-21T16:58:30.394Z] 16:58:30     INFO - Enter remote search mode and check autofill is cleared.
[task 2020-09-21T16:58:30.622Z] 16:58:30     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_autofill.js | One-offs are visible - true == true - 
``````