Bug: Intermittent [tier2] browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | uncaught exception - NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIWebProgress.removeProgressListener]
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-07-19 14:53:07+00:00
Resolved: 2021-08-31 17:00:51+00:00

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

---
```
[task 2021-07-19T10:24:35.004Z] 10:24:35     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js
[task 2021-07-19T10:24:35.233Z] 10:24:35     INFO - GECKO(3427) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-19T10:24:35.237Z] 10:24:35     INFO - GECKO(3427) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-19T10:24:38.382Z] 10:24:38     INFO - GECKO(3427) | -----------------------------------------------------
[task 2021-07-19T10:24:38.384Z] 10:24:38     INFO - GECKO(3427) | Suppressions used:
[task 2021-07-19T10:24:38.384Z] 10:24:38     INFO - GECKO(3427) |   count      bytes template
[task 2021-07-19T10:24:38.384Z] 10:24:38     INFO - GECKO(3427) |      14        448 nsComponentManagerImpl
[task 2021-07-19T10:24:38.385Z] 10:24:38     INFO - GECKO(3427) |       2        288 libfontconfig.so
[task 2021-07-19T10:24:38.385Z] 10:24:38     INFO - GECKO(3427) | -----------------------------------------------------
[task 2021-07-19T10:24:46.324Z] 10:24:46     INFO - GECKO(3427) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-19T10:24:46.325Z] 10:24:46     INFO - GECKO(3427) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-19T10:24:48.372Z] 10:24:48     INFO - GECKO(3427) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-07-19T10:24:48.372Z] 10:24:48     INFO - GECKO(3427) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

> task 2021-07-19T10:26:04.255Z] 10:26:04     INFO - doSetURITest with args: {"initialURL":"http://www.example.com/","searchString":"not a URL","url":null,"expectSearchMode":true}
[task 2021-07-19T10:26:04.256Z] 10:26:04     INFO - Buffered messages logged at 10:26:02
[task 2021-07-19T10:26:04.257Z] 10:26:04     INFO - Awaiting for the urlbar panel to open
[task 2021-07-19T10:26:04.258Z] 10:26:04     INFO - Urlbar panel opened
[task 2021-07-19T10:26:04.265Z] 10:26:04     INFO - Enter Search Mode {"source":1}
[task 2021-07-19T10:26:04.269Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | One-offs are visible - true == true - 
[task 2021-07-19T10:26:04.273Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Found one-off button for search mode - {"source":1,"_inheritedElements":null,"initializedAttributeInheritance":true} == true - 
[task 2021-07-19T10:26:04.278Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Urlbar view is still open. - true == true - 
[task 2021-07-19T10:26:04.281Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2021-07-19T10:26:04.284Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2021-07-19T10:26:04.290Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected searchMode - {"source":1,"isPreview":false,"entry":"oneoff"} deepEqual {"source":1,"entry":"oneoff","isPreview":false} - 
[task 2021-07-19T10:26:04.291Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected result source should have a name - "bookmarks" == true - 
[task 2021-07-19T10:26:04.292Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected l10n - {"args":null,"id":"urlbar-search-mode-bookmarks"} deepEqual {"id":"urlbar-search-mode-bookmarks","args":null} - 
[task 2021-07-19T10:26:04.292Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected l10n - {"args":null,"id":"urlbar-search-mode-bookmarks"} deepEqual {"id":"urlbar-search-mode-bookmarks","args":null} - 
[task 2021-07-19T10:26:04.293Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected placeholder l10n when search mode is active - {"args":null,"id":"urlbar-placeholder-search-mode-other-bookmarks"} deepEqual {"id":"urlbar-placeholder-search-mode-other-bookmarks","args":null} - 
[task 2021-07-19T10:26:04.294Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | userTypedValue should be not a URL - "not a URL" === "not a URL" - 
[task 2021-07-19T10:26:04.295Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2021-07-19T10:26:04.296Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2021-07-19T10:26:04.297Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected searchMode - {"source":1,"isPreview":false,"entry":"oneoff"} deepEqual {"source":1,"entry":"oneoff","isPreview":false} - 
[task 2021-07-19T10:26:04.298Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected result source should have a name - "bookmarks" == true - 
[task 2021-07-19T10:26:04.299Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected l10n - {"args":null,"id":"urlbar-search-mode-bookmarks"} deepEqual {"id":"urlbar-search-mode-bookmarks","args":null} - 
[task 2021-07-19T10:26:04.300Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected l10n - {"args":null,"id":"urlbar-search-mode-bookmarks"} deepEqual {"id":"urlbar-search-mode-bookmarks","args":null} - 
[task 2021-07-19T10:26:04.301Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected placeholder l10n when search mode is active - {"args":null,"id":"urlbar-placeholder-search-mode-other-bookmarks"} deepEqual {"id":"urlbar-placeholder-search-mode-other-bookmarks","args":null} - 
[task 2021-07-19T10:26:04.302Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2021-07-19T10:26:04.303Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | gURLBar.searchMode should exist as expected - false == false - 
[task 2021-07-19T10:26:04.304Z] 10:26:04     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Expected placeholder l10n when search mode is inactive - {"args":{"name":"Google"},"id":"urlbar-placeholder-with-name"} deepEqual {"id":"urlbar-placeholder-with-name","args":{"name":"Google"}} - 
[task 2021-07-19T10:26:04.305Z] 10:26:04     INFO - Buffered messages logged at 10:26:03
[task 2021-07-19T10:26:04.311Z] 10:26:04     INFO - doSetURITest with args: {"initialURL":"http://www.example.com/","searchString":"not a URL","url":"about:blank","expectSearchMode":true}
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - Buffered messages finished
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | uncaught exception - NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIWebProgress.removeProgressListener] at updateBrowserRemoteness@chrome://browser/content/tabbrowser.js:1898:28
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - onBackgroundBrowserCrash@resource:///modules/ContentCrashHandlers.jsm:300:14
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - onTabCrashed@chrome://browser/content/tabbrowser.js:5820:27
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - get loadContext@chrome://global/content/elements/browser-custom-element.js:386:7
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - construct@chrome://global/content/elements/browser-custom-element.js:1005:1
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - connectedCallback@chrome://global/content/elements/browser-custom-element.js:324:12
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - _insertBrowser@chrome://browser/content/tabbrowser.js:2329:24
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - addTab@chrome://browser/content/tabbrowser.js:2812:16
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - addTab@resource://testing-common/BrowserTestUtils.jsm:2432:23
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - openNewForegroundTab/promises<@resource://testing-common/BrowserTestUtils.jsm:250:61
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - switchTab@resource://testing-common/BrowserTestUtils.jsm:388:7
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - openNewForegroundTab@resource://testing-common/BrowserTestUtils.jsm:245:26
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - withNewTab@resource://testing-common/BrowserTestUtils.jsm:146:38
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - doSetURITest@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_setURI.js:76:26
[task 2021-07-19T10:26:04.312Z] 10:26:04     INFO - setURI@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_setURI.js:61:11
```