Bug: Intermittent browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-07-26 00:02:02+00:00
Resolved: 2024-09-30 12:02:22+00:00

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

---
```
TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search terms should match. - "chocolate cake" == "chocolate cake" - 
[task 2023-07-25T23:04:08.787Z] 23:04:08     INFO - Buffered messages finished
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | userTypedValue should match. - "chocolate cake" == null - {"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js","name":"assertSearchStringIsInUrlbar","sourceId":891,"lineNumber":143,"columnNumber":10,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js","name":"searchWithTab","sourceId":892,"lineNumber":59,"columnNumber":31,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js","name":"change_tab","sourceId":892,"lineNumber":67,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":539,"lineNumber":1131,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":539,"lineNumber":1203,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":539,"lineNumber":1345,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":539,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":572,"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":"async*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":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":"handleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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*change_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:67:29\nhandleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":{}},"caller":null,"formattedStack":"searchWithTab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:59:31\nasync*change_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:67:29\nhandleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":"assertSearchStringIsInUrlbar@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:143:10\nsearchWithTab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:59:31\nasync*change_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:67:29\nhandleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":{}}
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - Stack trace:
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:assertSearchStringIsInUrlbar:143
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:searchWithTab:59
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:change_tab:67
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochikit/content/browser-test.js:handleTask:1131
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-07-25T23:04:08.794Z] 23:04:08     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-07-25T23:04:08.795Z] 23:04:08     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-07-25T23:04:08.795Z] 23:04:08     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Pageproxystate should match. - "valid" == "valid" - 
[task 2023-07-25T23:04:08.795Z] 23:04:08     INFO - Awaiting for the urlbar panel to open
[task 2023-07-25T23:04:08.796Z] 23:04:08     INFO - Urlbar panel opened
[task 2023-07-25T23:04:08.796Z] 23:04:08     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "https://www.example.com/?q=another+keyword&pc=fake_code" line: 0}]
[task 2023-07-25T23:04:08.797Z] 23:04:08     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search string should be the urlbar value. - "another keyword" == "another keyword" - 
[task 2023-07-25T23:04:08.797Z] 23:04:08     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search terms should match. - "another keyword" == "another keyword" - 
[task 2023-07-25T23:04:08.797Z] 23:04:08     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | userTypedValue should match. - null == null - 
[task 2023-07-25T23:04:08.798Z] 23:04:08     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Pageproxystate should match. - "valid" == "valid" - 
[task 2023-07-25T23:04:08.809Z] 23:04:08     INFO - Awaiting for the urlbar panel to open
[task 2023-07-25T23:04:08.904Z] 23:04:08     INFO - Urlbar panel opened
[task 2023-07-25T23:04:09.029Z] 23:04:09     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "https://www.example.com/?q=yet+another+keyword&pc=fake_code" line: 0}]
[task 2023-07-25T23:04:09.076Z] 23:04:09     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search string should be the urlbar value. - "yet another keyword" == "yet another keyword" - 
[task 2023-07-25T23:04:09.078Z] 23:04:09     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search terms should match. - "yet another keyword" == "yet another keyword" - 
[task 2023-07-25T23:04:09.079Z] 23:04:09     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | userTypedValue should match. - null == null - 
[task 2023-07-25T23:04:09.079Z] 23:04:09     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Pageproxystate should match. - "valid" == "valid" - 
[task 2023-07-25T23:04:09.396Z] 23:04:09     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search string should be the urlbar value. - "chocolate cake" == "chocolate cake" - 
[task 2023-07-25T23:04:09.401Z] 23:04:09     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | Search terms should match. - "chocolate cake" == "chocolate cake" - 
[task 2023-07-25T23:04:09.410Z] 23:04:09     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-07-25T23:04:09.416Z] 23:04:09     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js | userTypedValue should match. - "chocolate cake" == null - {"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js","name":"assertSearchStringIsInUrlbar","sourceId":891,"lineNumber":143,"columnNumber":10,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js","name":"change_tab","sourceId":892,"lineNumber":72,"columnNumber":31,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":539,"lineNumber":1131,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":539,"lineNumber":1203,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":539,"lineNumber":1345,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":539,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":572,"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":"async*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":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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*handleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":{}},"caller":null,"formattedStack":"change_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:72:31\nasync*handleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":"assertSearchStringIsInUrlbar@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:143:10\nchange_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:72:31\nasync*handleTask@chrome://mochikit/content/browser-test.js:1131:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18\nasync*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":{}}
[task 2023-07-25T23:04:09.416Z] 23:04:09     INFO - Stack trace:
[task 2023-07-25T23:04:09.416Z] 23:04:09     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/head-common.js:assertSearchStringIsInUrlbar:143
[task 2023-07-25T23:04:09.416Z] 23:04:09     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_UrlbarInput_searchTerms_switch_tab.js:change_tab:72
[task 2023-07-25T23:04:09.416Z] 23:04:09     INFO - chrome://mochikit/content/browser-test.js:handleTask:1131
```