Bug: Intermittent browser/components/urlbar/tests/browser/browser_persist_searchMode.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-11-20 17:42:47+00:00
Resolved: 2024-12-18 00:00:19+00:00

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

---
```
[task 2024-11-20T16:30:12.022Z] 16:30:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2024-11-20T16:30:12.023Z] 16:30:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected placeholder l10n when search mode is active - {"args":{"name":"MochiSearch"},"id":"urlbar-placeholder-search-mode-web-2"} deepEqual {"id":"urlbar-placeholder-search-mode-web-2","args":{"name":"MochiSearch"}} - 
[task 2024-11-20T16:30:12.023Z] 16:30:12     INFO - If the user navigates to another host, we exit searchMode
[task 2024-11-20T16:30:12.024Z] 16:30:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2024-11-20T16:30:12.024Z] 16:30:12     INFO - Buffered messages finished
[task 2024-11-20T16:30:12.024Z] 16:30:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - true == false - 
[task 2024-11-20T16:30:12.024Z] 16:30:12     INFO - Stack trace:
[task 2024-11-20T16:30:12.024Z] 16:30:12     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:827
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:73
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-20T16:30:12.025Z] 16:30:12     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-11-20T16:30:12.071Z] 16:30:12     INFO - GECKO(4439) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpfmzz1u68.mozrunner/runtests_leaks_tab_pid10872.log
[task 2024-11-20T16:30:16.850Z] 16:30:16     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-20T16:30:16.852Z] 16:30:16     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Uncaught exception in test bound test_persist_searchmode - undefined - timed out after 50 tries.
[task 2024-11-20T16:30:16.852Z] 16:30:16     INFO - Leaving test bound test_persist_searchmode
[task 2024-11-20T16:30:16.853Z] 16:30:16     INFO - Entering test bound test_persist_searchmode_non_app_provided_engine
[task 2024-11-20T16:30:16.854Z] 16:30:16     INFO - Extension loaded
[task 2024-11-20T16:30:16.890Z] 16:30:16     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Search provider extension should be running - "running" == "running" - 
[task 2024-11-20T16:30:16.894Z] 16:30:16     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Extension ID of search provider should be set - "contextual@tests.mozilla.org" == true - 
[task 2024-11-20T16:30:17.059Z] 16:30:17     INFO - Waiting for the urlbar view to open
[task 2024-11-20T16:30:17.108Z] 16:30:17     INFO - Urlbar view opened
[task 2024-11-20T16:30:17.168Z] 16:30:17     INFO - Focus and select the contextual search result
[task 2024-11-20T16:30:17.170Z] 16:30:17     INFO - GECKO(4439) | JavaScript error: resource://testing-common/MockRegistrar.sys.mjs, line 71: NS_NOINTERFACE:
[task 2024-11-20T16:30:17.178Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2024-11-20T16:30:17.180Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - Console message: [JavaScript Error: "NS_NOINTERFACE: " {file: "resource://testing-common/MockRegistrar.sys.mjs" line: 71}]
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - createInstance@resource://testing-common/MockRegistrar.sys.mjs:71:28
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - synthesizeKey@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:1673:11
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - test_persist_searchmode_non_app_provided_engine@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:107:14
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2024-11-20T16:30:17.188Z] 16:30:17     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-11-20T16:30:17.189Z] 16:30:17     INFO - 
[task 2024-11-20T16:30:17.196Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-11-20T16:30:17.198Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected searchMode - {"engineName":"Contextual","isGeneralPurposeEngine":false,"isPreview":true,"entry":"keywordoffer"} deepEqual {"engineName":"Contextual","entry":"keywordoffer","isPreview":true,"isGeneralPurposeEngine":false} - 
[task 2024-11-20T16:30:17.198Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "Contextual" == "Contextual" - 
[task 2024-11-20T16:30:17.199Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2024-11-20T16:30:17.199Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "Contextual" == "Contextual" - 
[task 2024-11-20T16:30:17.200Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2024-11-20T16:30:17.201Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected placeholder l10n when search mode is active - {"args":{"name":"Contextual"},"id":"urlbar-placeholder-search-mode-other-engine"} deepEqual {"id":"urlbar-placeholder-search-mode-other-engine","args":{"name":"Contextual"}} - 
[task 2024-11-20T16:30:17.329Z] 16:30:17     INFO - Should exit search mode for non app-provided engines
[task 2024-11-20T16:30:17.334Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2024-11-20T16:30:17.335Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - false == false - 
[task 2024-11-20T16:30:17.338Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-11-20T16:30:17.338Z] 16:30:17     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected placeholder l10n when search mode is inactive - true == true - 
[task 2024-11-20T16:30:17.463Z] 16:30:17     INFO - Leaving test bound test_persist_searchmode_non_app_provided_engine
[task 2024-11-20T16:30:17.463Z] 16:30:17     INFO - Entering test bound test_escape_searchmode
[task 2024-11-20T16:30:17.468Z] 16:30:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-20T16:30:17.473Z] 16:30:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Uncaught exception in test bound test_escape_searchmode - at resource://testing-common/sinon-7.2.7.js:3605 - TypeError: Attempted to wrap getIconURL which is already wrapped
[task 2024-11-20T16:30:17.473Z] 16:30:17     INFO - Stack trace:
[task 2024-11-20T16:30:17.474Z] 16:30:17     INFO - checkWrappedMethod@resource://testing-common/sinon-7.2.7.js:3605:21
[task 2024-11-20T16:30:17.475Z] 16:30:17     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3653:31
[task 2024-11-20T16:30:17.475Z] 16:30:17     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2024-11-20T16:30:17.476Z] 16:30:17     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2024-11-20T16:30:17.476Z] 16:30:17     INFO - installPersistTestEngines@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:167:6
[task 2024-11-20T16:30:17.476Z] 16:30:17     INFO - test_escape_searchmode@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:126:23
[task 2024-11-20T16:30:17.477Z] 16:30:17     INFO - handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2024-11-20T16:30:17.477Z] 16:30:17     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2024-11-20T16:30:17.477Z] 16:30:17     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2024-11-20T16:30:17.478Z] 16:30:17     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2024-11-20T16:30:17.478Z] 16:30:17     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-11-20T16:30:17.479Z] 16:30:17     INFO - 
[task 2024-11-20T16:30:17.479Z] 16:30:17     INFO - --------------
[task 2024-11-20T16:30:17.479Z] 16:30:17     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3679:26
[task 2024-11-20T16:30:17.480Z] 16:30:17     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2024-11-20T16:30:17.482Z] 16:30:17     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2024-11-20T16:30:17.484Z] 16:30:17     INFO - installPersistTestEngines@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:167:6
[task 2024-11-20T16:30:17.485Z] 16:30:17     INFO - test_persist_searchmode@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:20:23
[task 2024-11-20T16:30:17.486Z] 16:30:17     INFO - handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2024-11-20T16:30:17.487Z] 16:30:17     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2024-11-20T16:30:17.487Z] 16:30:17     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2024-11-20T16:30:17.488Z] 16:30:17     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2024-11-20T16:30:17.489Z] 16:30:17     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-11-20T16:30:17.493Z] 16:30:17     INFO - Leaving test bound test_escape_searchmode
[task 2024-11-20T16:30:17.494Z] 16:30:17     INFO - Closing the view directly
[task 2024-11-20T16:30:17.494Z] 16:30:17     INFO - Waiting for the view to close
[task 2024-11-20T16:30:17.495Z] 16:30:17     INFO - Urlbar view closed
[task 2024-11-20T16:30:18.003Z] 16:30:18     INFO - GECKO(4439) | MEMORY STAT | vsize 12205MB | residentFast 665MB | heapAllocated 337MB
[task 2024-11-20T16:30:18.003Z] 16:30:18     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | took 7038ms
[task 2024-11-20T16:30:18.021Z] 16:30:18     INFO - checking window state
[task 2024-11-20T16:30:18.037Z] 16:30:18     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_placeholder.js
```