Bug: Perma browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - false == true - when Gecko 134 switches to beta on 2024-12-06
Status: VERIFIED
Priority: --
Resolution: FIXED
Created: 2024-11-22 13:12:35+00:00
Resolved: 2024-11-25 13:51:04+00:00

[Central-as-beta-simulation](https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=f01e353b8232b1cb83d6cc5454276d9bd0a794bd&selectedTaskRun=ORYPYT9hQiqkZ6wXxNOApQ.0&test_paths=browser%2Fcomponents%2Furlbar%2Ftests%2Fbrowser)

[How to run these simulations](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)


[Failure log](https://treeherder.mozilla.org/logviewer?job_id=483758973&repo=try&lineNumber=34219)
*Failure snippet:
```
[task 2024-11-22T12:00:40.805Z] 12:00:40     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-22T12:00:40.806Z] 12:00:40     INFO - Buffered messages finished
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - false == true - 
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - Stack trace:
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:827
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:46
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:40.807Z] 12:00:40     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:40.809Z] 12:00:40     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-11-22T12:00:40.809Z] 12:00:40     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:40.817Z] 12:00:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected searchMode - null deepEqual {"engineName":"MochiSearch","entry":"other","source":3,"isPreview":false,"isGeneralPurposeEngine":true} - 
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - Stack trace:
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:902
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:46
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:40.818Z] 12:00:40     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:40.821Z] 12:00:40     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:40.822Z] 12:00:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "" == "MochiSearch" - 
[task 2024-11-22T12:00:40.822Z] 12:00:40     INFO - Stack trace:
[task 2024-11-22T12:00:40.822Z] 12:00:40     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:926
[task 2024-11-22T12:00:40.823Z] 12:00:40     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:46
[task 2024-11-22T12:00:40.823Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:40.823Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:40.823Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:40.823Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:40.823Z] 12:00:40     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:40.823Z] 12:00:40     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-22T12:00:40.823Z] 12:00:40     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "" == "MochiSearch" - 
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - Stack trace:
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:926
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:46
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:40.827Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:40.828Z] 12:00:40     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:40.829Z] 12:00:40     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-22T12:00:40.832Z] 12:00:40     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected placeholder l10n when search mode is active - {"args":{"name":"Example"},"id":"urlbar-placeholder-with-name"} deepEqual {"id":"urlbar-placeholder-search-mode-web-2","args":{"name":"MochiSearch"}} - 
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - Stack trace:
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:955
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:46
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:40.833Z] 12:00:40     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:40.834Z] 12:00:40     INFO - Performing another search in the urlbar will remain in searchMode
[task 2024-11-22T12:00:40.835Z] 12:00:40     INFO - GECKO(2428) | [Parent 6668, Main Thread] WARNING: '!mOwner', file /builds/worker/checkouts/gecko/dom/events/Event.cpp:782
[task 2024-11-22T12:00:40.835Z] 12:00:40     INFO - Waiting for the urlbar view to open
[task 2024-11-22T12:00:40.836Z] 12:00:40     INFO - Urlbar view opened
[task 2024-11-22T12:00:40.933Z] 12:00:40     INFO - GECKO(2428) | [Child 5924: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 18ca89f7400 == 1 [pid = 5924] [id = 0]
[task 2024-11-22T12:00:40.936Z] 12:00:40     INFO - GECKO(2428) | [Child 5924: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (18ca3597000) [pid = 5924] [serial = 1] [outer = 0]
[task 2024-11-22T12:00:40.938Z] 12:00:40     INFO - GECKO(2428) | [Child 5924: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (18ca89f9400) [pid = 5924] [serial = 2] [outer = 18ca3597000]
[task 2024-11-22T12:00:41.012Z] 12:00:41     INFO - GECKO(2428) | [Child 5924: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (18ca89fc800) [pid = 5924] [serial = 3] [outer = 18ca3597000]
[task 2024-11-22T12:00:41.031Z] 12:00:41     INFO - GECKO(2428) | [Child 5924, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, NS_ERROR_INVALID_ARG) failed with result 0x80520012 (NS_ERROR_FILE_NOT_FOUND): file /builds/worker/checkouts/gecko/intl/l10n/L10nRegistry.cpp:385
[task 2024-11-22T12:00:41.100Z] 12:00:41     INFO - GECKO(2428) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_173227516759307\AppData\Local\Temp\tmpm72ztg35.mozrunner\runtests_leaks_tab_pid4468.log
[task 2024-11-22T12:00:41.137Z] 12:00:41     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-22T12:00:41.151Z] 12:00:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:41.152Z] 12:00:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | gURLBar.searchMode should exist as expected - false == true - 
[task 2024-11-22T12:00:41.152Z] 12:00:41     INFO - Stack trace:
[task 2024-11-22T12:00:41.152Z] 12:00:41     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:827
[task 2024-11-22T12:00:41.153Z] 12:00:41     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:60
[task 2024-11-22T12:00:41.153Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:41.153Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:41.153Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:41.153Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:41.153Z] 12:00:41     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:41.162Z] 12:00:41     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Urlbar results have proper actionmode attribute - true == true - 
[task 2024-11-22T12:00:41.164Z] 12:00:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected searchMode - null deepEqual {"engineName":"MochiSearch","entry":"other","source":3,"isPreview":false,"isGeneralPurposeEngine":true} - 
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - Stack trace:
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:902
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:60
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:41.166Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:41.167Z] 12:00:41     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:41.167Z] 12:00:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:41.168Z] 12:00:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "" == "MochiSearch" - 
[task 2024-11-22T12:00:41.168Z] 12:00:41     INFO - Stack trace:
[task 2024-11-22T12:00:41.168Z] 12:00:41     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:926
[task 2024-11-22T12:00:41.168Z] 12:00:41     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:60
[task 2024-11-22T12:00:41.169Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:41.169Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:41.169Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:41.169Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:41.169Z] 12:00:41     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:41.170Z] 12:00:41     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-22T12:00:41.170Z] 12:00:41     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-11-22T12:00:41.172Z] 12:00:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected textContent - "" == "MochiSearch" - 
[task 2024-11-22T12:00:41.172Z] 12:00:41     INFO - Stack trace:
[task 2024-11-22T12:00:41.172Z] 12:00:41     INFO - resource://testing-common/UrlbarTestUtils.sys.mjs:assertSearchMode:926
[task 2024-11-22T12:00:41.172Z] 12:00:41     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_persist_searchMode.js:test_persist_searchmode:60
[task 2024-11-22T12:00:41.173Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2024-11-22T12:00:41.173Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2024-11-22T12:00:41.173Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2024-11-22T12:00:41.173Z] 12:00:41     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2024-11-22T12:00:41.173Z] 12:00:41     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-11-22T12:00:41.175Z] 12:00:41     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_persist_searchMode.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
```