Bug: Perma browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js | Should be a switch tab result - 1 == 3 - {"filename": <path> "name":"queryAndCheckOneSwitchTabResult","sourceId": [...] when Gecko 125 merges to Beta on 2024-03-18
Status: VERIFIED
Priority: P1
Resolution: FIXED
Created: 2024-03-02 18:20:41+00:00
Resolved: 2024-03-05 17:34:52+00:00

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

[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=449225153&repo=try)

```
[task 2024-03-02T16:24:13.846Z] 16:24:13     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js | Url is the first non-heuristic result - "https://example.com/" == "https://example.com/" - 
[task 2024-03-02T16:24:13.846Z] 16:24:13     INFO - Buffered messages finished
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js | Should be a switch tab result - 1 == 3 - {"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js","name":"queryAndCheckOneSwitchTabResult","sourceId":5344,"lineNumber":122,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js","name":"test_adaptive_nonadaptive_container_dedupe_switch_tab","sourceId":5344,"lineNumber":134,"columnNumber":11,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":558,"lineNumber":1139,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":558,"lineNumber":1211,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":558,"lineNumber":1353,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":558,"lineNumber":1128,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":586,"lineNumber":1058,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*handleTask@chrome://mochikit/content/browser-test.js:1139:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*test_adaptive_nonadaptive_container_dedupe_switch_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:134:11\nasync*handleTask@chrome://mochikit/content/browser-test.js:1139:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"queryAndCheckOneSwitchTabResult@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:122:14\nasync*test_adaptive_nonadaptive_container_dedupe_switch_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:134:11\nasync*handleTask@chrome://mochikit/content/browser-test.js:1139:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - Stack trace:
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:queryAndCheckOneSwitchTabResult:122
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:test_adaptive_nonadaptive_container_dedupe_switch_tab:134
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:handleTask:1139
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2024-03-02T16:24:13.851Z] 16:24:13     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-03-02T16:24:13.852Z] 16:24:13     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js | Should use the expected container - 1 == "undefined" - {"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js","name":"queryAndCheckOneSwitchTabResult","sourceId":5344,"lineNumber":127,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js","name":"test_adaptive_nonadaptive_container_dedupe_switch_tab","sourceId":5344,"lineNumber":134,"columnNumber":11,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":558,"lineNumber":1139,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":558,"lineNumber":1211,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":558,"lineNumber":1353,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":558,"lineNumber":1128,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":586,"lineNumber":1058,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*handleTask@chrome://mochikit/content/browser-test.js:1139:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*test_adaptive_nonadaptive_container_dedupe_switch_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:134:11\nasync*handleTask@chrome://mochikit/content/browser-test.js:1139:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"queryAndCheckOneSwitchTabResult@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:127:14\nasync*test_adaptive_nonadaptive_container_dedupe_switch_tab@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:134:11\nasync*handleTask@chrome://mochikit/content/browser-test.js:1139:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1128:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - Stack trace:
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:queryAndCheckOneSwitchTabResult:127
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js:test_adaptive_nonadaptive_container_dedupe_switch_tab:134
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:handleTask:1139
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2024-03-02T16:24:13.856Z] 16:24:13     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-03-02T16:24:13.857Z] 16:24:13     INFO - Add the same url to input history.
[task 2024-03-02T16:24:13.857Z] 16:24:13     INFO - Repeat the query.
[task 2024-03-02T16:24:13.908Z] 16:24:13     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchTab_inputHistory.js | Check number of results - 2 == 2 - 
```