Bug: Intermittent browser/components/urlbar/tests/browser/browser_persist_searchMode.js | single tracking bug
Status: NEW
Priority: P5
Created: 2024-12-18 00:00:19+00:00
Resolved: 2025-03-03 06:33:28+00:00

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

---
```
[task 2024-12-17T23:11:45.849Z] 23:11:45     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected searchMode - {"engineName":"MochiSearch","isGeneralPurposeEngine":true,"source":3,"isPreview":false,"entry":"other"} deepEqual {"engineName":"MochiSearch","entry":"other","source":3,"isPreview":false,"isGeneralPurposeEngine":true} - 
[task 2024-12-17T23:11:45.849Z] 23:11:45     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "MochiSearch" == "MochiSearch" - 
[task 2024-12-17T23:11:45.849Z] 23:11:45     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-12-17T23:11:45.849Z] 23:11:45     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "MochiSearch" == "MochiSearch" - 
[task 2024-12-17T23:11:45.850Z] 23:11:45     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-12-17T23:11:45.850Z] 23:11:45     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-12-17T23:11:45.850Z] 23:11:45     INFO - If the user navigates to another host, we exit searchMode
[task 2024-12-17T23:11:45.850Z] 23:11:45     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-12-17T23:11:45.850Z] 23:11:45     INFO - Buffered messages finished
[task 2024-12-17T23:11:45.850Z] 23:11:45     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - true == false - 
[task 2024-12-17T23:11:45.850Z] 23:11:45     INFO - Stack trace:
[task 2024-12-17T23:11:45.850Z] 23:11:45     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:827
[task 2024-12-17T23:11:45.850Z] 23:11:45     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:78
[task 2024-12-17T23:11:45.851Z] 23:11:45     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-12-17T23:11:45.851Z] 23:11:45     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-12-17T23:11:45.851Z] 23:11:45     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-12-17T23:11:45.851Z] 23:11:45     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-12-17T23:11:45.851Z] 23:11:45     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-12-17T23:11:45.851Z] 23:11:45     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-12-17T23:11:46.051Z] 23:11:46     INFO - GECKO(25377) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmptza6p7lk.mozrunner/runtests_leaks_tab_pid31718.log
[task 2024-12-17T23:11:50.757Z] 23:11:50     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-12-17T23:11:50.757Z] 23:11:50     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-12-17T23:11:50.757Z] 23:11:50     INFO - Leaving test bound test_persist_searchmode
[task 2024-12-17T23:11:50.759Z] 23:11:50     INFO - Entering test bound test_persist_searchmode_non_app_provided_engine
[task 2024-12-17T23:11:50.759Z] 23:11:50     INFO - Extension loaded
[task 2024-12-17T23:11:50.790Z] 23:11:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Search provider extension should be running - "running" == "running" - 
[task 2024-12-17T23:11:50.791Z] 23:11:50     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-12-17T23:11:50.868Z] 23:11:50     INFO - Waiting for the urlbar view to open
[task 2024-12-17T23:11:50.897Z] 23:11:50     INFO - Urlbar view opened
[task 2024-12-17T23:11:50.965Z] 23:11:50     INFO - Focus and select the contextual search result
[task 2024-12-17T23:11:50.969Z] 23:11:50     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-12-17T23:11:50.970Z] 23:11:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2024-12-17T23:11:50.974Z] 23:11:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-12-17T23:11:50.975Z] 23:11:50     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-12-17T23:11:50.977Z] 23:11:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "Contextual" == "Contextual" - 
[task 2024-12-17T23:11:50.977Z] 23:11:50     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-12-17T23:11:50.977Z] 23:11:50     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "Contextual" == "Contextual" - 
[task 2024-12-17T23:11:50.978Z] 23:11:50     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-12-17T23:11:50.978Z] 23:11:50     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-12-17T23:11:51.075Z] 23:11:51     INFO - Should exit search mode for non app-provided engines
[task 2024-12-17T23:11:51.077Z] 23:11:51     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-12-17T23:11:51.078Z] 23:11:51     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - false == false - 
[task 2024-12-17T23:11:51.087Z] 23:11:51     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-12-17T23:11:51.089Z] 23:11:51     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected placeholder l10n when search mode is inactive - true == true - 
[task 2024-12-17T23:11:51.136Z] 23:11:51     INFO - Leaving test bound test_persist_searchmode_non_app_provided_engine
[task 2024-12-17T23:11:51.138Z] 23:11:51     INFO - Entering test bound test_escape_searchmode
[task 2024-12-17T23:11:51.141Z] 23:11:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-12-17T23:11:51.144Z] 23:11:51     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-12-17T23:11:51.144Z] 23:11:51     INFO - Stack trace:
[task 2024-12-17T23:11:51.144Z] 23:11:51     INFO - checkWrappedMethod@resource://testing-common/sinon-7.2.7.js:3605:21
[task 2024-12-17T23:11:51.144Z] 23:11:51     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3653:31
[task 2024-12-17T23:11:51.144Z] 23:11:51     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - installPersistTestEngines@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:167:6
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - test_escape_searchmode@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:131:23
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - 
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - --------------
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3679:26
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - installPersistTestEngines@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:167:6
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - test_persist_searchmode@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:21:23
[task 2024-12-17T23:11:51.145Z] 23:11:51     INFO - handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - Leaving test bound test_escape_searchmode
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - Closing the view directly
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - Waiting for the view to close
[task 2024-12-17T23:11:51.146Z] 23:11:51     INFO - Urlbar view closed
[task 2024-12-17T23:11:51.512Z] 23:11:51     INFO - GECKO(25377) | MEMORY STAT | vsize 11962MB | residentFast 588MB | heapAllocated 362MB
[task 2024-12-17T23:11:51.512Z] 23:11:51     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | took 6591ms
[task 2024-12-17T23:11:51.529Z] 23:11:51     INFO - checking window state
[task 2024-12-17T23:11:51.539Z] 23:11:51     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_placeholder.js
```