Bug: Intermittent browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-07-05 19:45:52+00:00
Resolved: 2023-08-18 12:04:13+00:00

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

---
```
[task 2023-07-05T19:12:12.363Z] 19:12:12     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 2023-07-05T19:12:12.363Z] 19:12:12     INFO - Buffered messages finished
[task 2023-07-05T19:12:12.364Z] 19:12:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | Uncaught exception in test bound setURI - at resource:///modules/AsyncTabSwitcher.sys.mjs:169 - TypeError: initialBrowser.preserveLayers is not a function
[task 2023-07-05T19:12:12.364Z] 19:12:12     INFO - Stack trace:
[task 2023-07-05T19:12:12.364Z] 19:12:12     INFO - AsyncTabSwitcher@resource:///modules/AsyncTabSwitcher.sys.mjs:169:20
[task 2023-07-05T19:12:12.365Z] 19:12:12     INFO - _getSwitcher@chrome://browser/content/tabbrowser.js:5503:26
[task 2023-07-05T19:12:12.366Z] 19:12:12     INFO - warmupTab@chrome://browser/content/tabbrowser.js:5510:14
[task 2023-07-05T19:12:12.366Z] 19:12:12     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:4060:18
[task 2023-07-05T19:12:12.366Z] 19:12:12     INFO - removeTab@chrome://browser/content/tabbrowser.js:3959:15
[task 2023-07-05T19:12:12.367Z] 19:12:12     INFO - removeTab@resource://testing-common/BrowserTestUtils.sys.mjs:1886:30
[task 2023-07-05T19:12:12.367Z] 19:12:12     INFO - withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:154:26
[task 2023-07-05T19:12:12.367Z] 19:12:12     INFO - async*doSetURITest@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_setURI.js:76:26
[task 2023-07-05T19:12:12.371Z] 19:12:12     INFO - setURI@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchMode_setURI.js:61:11
[task 2023-07-05T19:12:12.372Z] 19:12:12     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-07-05T19:12:12.372Z] 19:12:12     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-07-05T19:12:12.372Z] 19:12:12     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-07-05T19:12:12.372Z] 19:12:12     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-07-05T19:12:12.372Z] 19:12:12     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-07-05T19:12:12.373Z] 19:12:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-07-05T19:12:12.373Z] 19:12:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | A promise chain failed to handle a rejection: can't access property "gMultiProcessBrowser", chromeWin is undefined - stack: isBrowserPrivate@resource://gre/modules/PrivateBrowsingUtils.sys.mjs:37:9
[task 2023-07-05T19:12:12.373Z] 19:12:12     INFO - get _incognito@chrome://extensions/content/parent/ext-tabs-base.js:188:33
[task 2023-07-05T19:12:12.373Z] 19:12:12     INFO - @chrome://extensions/content/parent/ext-tabs-base.js:905:3
[task 2023-07-05T19:12:12.373Z] 19:12:12     INFO - get@resource://gre/modules/ExtensionCommon.sys.mjs:151:36
[task 2023-07-05T19:12:12.373Z] 19:12:12     INFO - convert@chrome://extensions/content/parent/ext-tabs-base.js:648:7
[task 2023-07-05T19:12:12.374Z] 19:12:12     INFO - this.tabs</onUpdated/fireForTab/<@chrome://browser/content/parent/ext-tabs.js:392:48
[task 2023-07-05T19:12:12.375Z] 19:12:12     INFO - Rejection date: Wed Jul 05 2023 19:12:11 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":569,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":532,"lineNumber":1159,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":532,"lineNumber":1203,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":532,"lineNumber":1345,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":532,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":560,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1159:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1159:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-07-05T19:12:12.375Z] 19:12:12     INFO - Stack trace:
[task 2023-07-05T19:12:12.375Z] 19:12:12     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-07-05T19:12:12.376Z] 19:12:12     INFO - chrome://mochikit/content/browser-test.js:handleTask:1159
[task 2023-07-05T19:12:12.376Z] 19:12:12     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-07-05T19:12:12.376Z] 19:12:12     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-07-05T19:12:12.376Z] 19:12:12     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-07-05T19:12:12.376Z] 19:12:12     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-07-05T19:12:12.376Z] 19:12:12     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-07-05T19:12:12.385Z] 19:12:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchMode_setURI.js | A promise chain failed to handle a rejection: can't access property "gMultiProcessBrowser", chromeWin is undefined - stack: isBrowserPrivate@resource://gre/modules/PrivateBrowsingUtils.sys.mjs:37:9
[task 2023-07-05T19:12:12.385Z] 19:12:12     INFO - get _incognito@chrome://extensions/content/parent/ext-tabs-base.js:188:33
[task 2023-07-05T19:12:12.386Z] 19:12:12     INFO - @chrome://extensions/content/parent/ext-tabs-base.js:905:3
[task 2023-07-05T19:12:12.386Z] 19:12:12     INFO - get@resource://gre/modules/ExtensionCommon.sys.mjs:151:36
[task 2023-07-05T19:12:12.386Z] 19:12:12     INFO - convert@chrome://extensions/content/parent/ext-tabs-base.js:648:7
[task 2023-07-05T19:12:12.386Z] 19:12:12     INFO - this.tabs</onUpdated/fireForTab/<@chrome://browser/content/parent/ext-tabs.js:392:48
[task 2023-07-05T19:12:12.387Z] 19:12:12     INFO - Rejection date: Wed Jul 05 2023 19:12:11 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":569,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":532,"lineNumber":1159,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":532,"lineNumber":1203,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":532,"lineNumber":1345,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":532,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":560,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1159:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1159:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1345:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
```