Bug: Perma TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_recentsearches.js | Test timed out - when Gecko 128 merges to beta on 2024-06-10
Status: VERIFIED
Priority: P1
Resolution: DUPLICATE
Created: 2024-05-30 13:18:47+00:00
Resolved: 2024-06-05 16:48:36+00:00

[Tracking Requested - why for this release]:

- [Central-as-beta simulation.](https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=Pm9J0DPwSUeX4grCHVFAcg.0&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=83d20513e32a9c80fa1fe172435ec66e4ce33c19&searchStr=bc) 
- [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=460307304&repo=try&lineNumber=52180)
```
[task 2024-05-30T11:59:20.177Z] 11:59:20     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_recentsearches.js
[task 2024-05-30T11:59:20.204Z] 11:59:20     INFO - GECKO(9688) | [Parent 7796, Main Thread] WARNING: Ignoring duplicate observer: browser.shopping.experience2023.autoOpen.userEnabled: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:2905
[task 2024-05-30T11:59:20.215Z] 11:59:20     INFO - GECKO(9688) | [Parent 7796, Main Thread] WARNING: Ignoring duplicate observer: browser.shopping.experience2023.optedIn: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:2905
[task 2024-05-30T11:59:20.658Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (dee3100) [pid = 8908] [serial = 426] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.662Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (de4ae00) [pid = 8908] [serial = 425] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.662Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (de33a00) [pid = 8908] [serial = 423] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.664Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (de31300) [pid = 8908] [serial = 422] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.665Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (c5d5300) [pid = 8908] [serial = 420] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.665Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (c5cb100) [pid = 8908] [serial = 419] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.666Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL a1ad400 == 0 [pid = 8908] [id = 162] [url = about:blank]
[task 2024-05-30T11:59:20.689Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (4f5f040) [pid = 8908] [serial = 427] [outer = 0] [url = about:blank]
[task 2024-05-30T11:59:20.705Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL c5c8a00 == 1 [pid = 8908] [id = 163]
[task 2024-05-30T11:59:20.706Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (4f5f040) [pid = 8908] [serial = 429] [outer = 0]
[task 2024-05-30T11:59:20.707Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (c5cb700) [pid = 8908] [serial = 430] [outer = 4f5f040]
[task 2024-05-30T11:59:20.720Z] 11:59:20     INFO - GECKO(9688) | Waiting for browser load
[task 2024-05-30T11:59:20.725Z] 11:59:20     INFO - GECKO(9688) | Waiting for browser state change
[task 2024-05-30T11:59:20.752Z] 11:59:20     INFO - GECKO(9688) | Saw state f0001 and status 0
[task 2024-05-30T11:59:20.783Z] 11:59:20     INFO - GECKO(9688) | [Child 8908: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (c5d5c00) [pid = 8908] [serial = 431] [outer = 4f5f040]
[task 2024-05-30T11:59:20.815Z] 11:59:20     INFO - GECKO(9688) | Saw state c0010 and status 0
[task 2024-05-30T11:59:20.827Z] 11:59:20     INFO - GECKO(9688) | Browser got expected state change data:text/html,
[task 2024-05-30T11:59:20.894Z] 11:59:20     INFO - GECKO(9688) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_171706866769596\AppData\Local\Temp\tmpjf7z2a4h.mozrunner\runtests_leaks_tab_pid10136.log
[task 2024-05-30T11:59:20.909Z] 11:59:20     INFO - GECKO(9688) | [Parent 7796: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 38 (137b8dc0) [pid = 7796] [serial = 432] [outer = 0] [url = about:blank]
<...>
[task 2024-05-30T11:59:31.756Z] 11:59:31     INFO - GECKO(9688) | [Child 7008: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (e754d00) [pid = 7008] [serial = 225] [outer = 0] [url = about:newtab]
[task 2024-05-30T11:59:33.699Z] 11:59:33     INFO - GECKO(9688) | [Child 5460: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (a3af700) [pid = 5460] [serial = 2] [outer = 0] [url = about:blank]
[task 2024-05-30T12:00:56.047Z] 12:00:56     INFO - TEST-INFO | started process screenshot
[task 2024-05-30T12:00:56.329Z] 12:00:56     INFO - TEST-INFO | screenshot: exit 0
[task 2024-05-30T12:00:56.336Z] 12:00:56     INFO - Buffered messages logged at 11:59:20
[task 2024-05-30T12:00:56.336Z] 12:00:56     INFO - Entering setup bound 
[task 2024-05-30T12:00:56.338Z] 12:00:56     INFO - Leaving setup bound 
[task 2024-05-30T12:00:56.338Z] 12:00:56     INFO - Entering test bound 
[task 2024-05-30T12:00:56.339Z] 12:00:56     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "data:text/html," line: 0}]
[task 2024-05-30T12:00:56.339Z] 12:00:56     INFO - Buffered messages logged at 11:59:21
[task 2024-05-30T12:00:56.340Z] 12:00:56     INFO - Perform a search that will be added to search history.
[task 2024-05-30T12:00:56.341Z] 12:00:56     INFO - Waiting for the urlbar view to open
[task 2024-05-30T12:00:56.341Z] 12:00:56     INFO - Urlbar view opened
[task 2024-05-30T12:00:56.342Z] 12:00:56     INFO - Awaiting custom close function
[task 2024-05-30T12:00:56.342Z] 12:00:56     INFO - Done awaiting custom close function
[task 2024-05-30T12:00:56.343Z] 12:00:56     INFO - Waiting for the view to close
[task 2024-05-30T12:00:56.344Z] 12:00:56     INFO - Urlbar view closed
[task 2024-05-30T12:00:56.344Z] 12:00:56     INFO - Buffered messages finished
[task 2024-05-30T12:00:56.345Z] 12:00:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_recentsearches.js | Test timed out - 
[task 2024-05-30T12:00:56.346Z] 12:00:56     INFO - GECKO(9688) | Completed ShutdownLeaks collections in process 7796
[task 2024-05-30T12:00:56.346Z] 12:00:56     INFO - TEST-START | Shutdown
[task 2024-05-30T12:00:56.347Z] 12:00:56     INFO - Browser Chrome Test Summary
[task 2024-05-30T12:00:56.347Z] 12:00:56     INFO - Passed:  8417
[task 2024-05-30T12:00:56.348Z] 12:00:56     INFO - Failed:  1
[task 2024-05-30T12:00:56.349Z] 12:00:56     INFO - Todo:    1
[task 2024-05-30T12:00:56.349Z] 12:00:56     INFO - Mode:    e10s
[task 2024-05-30T12:00:56.350Z] 12:00:56     INFO - *** End BrowserChrome Test Results ***
[task 2024-05-30T12:00:56.350Z] 12:00:56     INFO - GECKO(9688) | [Child 8908, Main Thread] WARNING: DispatchEvent called on non-current inner window, dropping. Please check the window in the caller instead.: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowInner.cpp:4198
[task 2024-05-30T12:00:56.351Z] 12:00:56     INFO - GECKO(9688) | [Child 5236, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.352Z] 12:00:56     INFO - GECKO(9688) | [Child 5236, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.353Z] 12:00:56     INFO - GECKO(9688) | [Child 5236, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.354Z] 12:00:56     INFO - GECKO(9688) | [Child 5236, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.354Z] 12:00:56     INFO - GECKO(9688) | [Child 5236, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.355Z] 12:00:56     INFO - GECKO(9688) | [Child 5236, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.355Z] 12:00:56     INFO - GECKO(9688) | 1717070456250	Marionette	TRACE	Received observer notification quit-application
[task 2024-05-30T12:00:56.356Z] 12:00:56     INFO - GECKO(9688) | 1717070456251	Marionette	INFO	Stopped listening on port 2828
[task 2024-05-30T12:00:56.357Z] 12:00:56     INFO - GECKO(9688) | 1717070456256	Marionette	DEBUG	Marionette stopped listening
[task 2024-05-30T12:00:56.357Z] 12:00:56     INFO - GECKO(9688) | [GPU 5996, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:395
[task 2024-05-30T12:00:56.358Z] 12:00:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-05-30T12:00:56.360Z] 12:00:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_recentsearches.js | Uncaught exception received from previously timed out test bound  - at resource://testing-common/BrowserTestUtils.sys.mjs:538 - Error: The window unloaded while we were waiting for the browser to load - this should never happen.
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - Stack trace:
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - listener@resource://testing-common/BrowserTestUtils.sys.mjs:538:15
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - EventListener.handleEvent*browserLoaded/<@resource://testing-common/BrowserTestUtils.sys.mjs:553:27
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - browserLoaded@resource://testing-common/BrowserTestUtils.sys.mjs:503:12
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - @chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_recentsearches.js:106:40
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-05-30T12:00:56.361Z] 12:00:56     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-05-30T12:00:56.362Z] 12:00:56     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-05-30T12:00:56.363Z] 12:00:56     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-05-30T12:00:56.363Z] 12:00:56     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-05-30T12:00:56.364Z] 12:00:56     INFO - Entering test bound 
[task 2024-05-30T12:00:56.364Z] 12:00:56     INFO - GECKO(9688) | [Parent 7796, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (SpecialPowers, PushPrefEnv) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:61
[task 2024-05-30T12:00:56.364Z] 12:00:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-05-30T12:00:56.365Z] 12:00:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_recentsearches.js | Uncaught exception received from previously timed out test bound  - InvalidStateError: JSWindowActorChild.sendQuery: JSWindowActorChild cannot send at the moment
[task 2024-05-30T12:00:56.365Z] 12:00:56     INFO - Stack trace:
[task 2024-05-30T12:00:56.365Z] 12:00:56     INFO - pushPrefEnv@resource://testing-common/SpecialPowersChild.sys.mjs:847:42
[task 2024-05-30T12:00:56.365Z] 12:00:56     INFO - @chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_recentsearches.js:160:23
[task 2024-05-30T12:00:56.365Z] 12:00:56     INFO - handleTask@chrome://mochikit/content/browser-test.js:1139:26
<...>
```