Bug: Intermittent browser/components/screenshots/tests/browser/browser_text_selectionAPI_test.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-10-17 18:06:10+00:00
Resolved: 2024-11-11 12:09:27+00:00

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

---
```
TEST-PASS | browser/components/screenshots/tests/browser/browser_text_selectionAPI_test.js | The screenshots button was added to the nav bar - "[object XULElement]" == true - 
[task 2024-10-17T16:21:03.019Z] 16:21:03     INFO - Leaving setup bound 
[task 2024-10-17T16:21:03.020Z] 16:21:03     INFO - Entering test bound test_textSelectedDuringScreenshot
[task 2024-10-17T16:21:03.020Z] 16:21:03     INFO - Buffered messages finished
[task 2024-10-17T16:21:03.021Z] 16:21:03     INFO - TEST-UNEXPECTED-FAIL | browser/components/screenshots/tests/browser/browser_text_selectionAPI_test.js | Test timed out - 
[task 2024-10-17T16:21:03.021Z] 16:21:03     INFO - GECKO(5932) | Completed ShutdownLeaks collections in process 788
[task 2024-10-17T16:21:03.022Z] 16:21:03     INFO - TEST-START | Shutdown
[task 2024-10-17T16:21:03.023Z] 16:21:03     INFO - Browser Chrome Test Summary
[task 2024-10-17T16:21:03.024Z] 16:21:03     INFO - Passed:  1373
[task 2024-10-17T16:21:03.024Z] 16:21:03     INFO - Failed:  1
[task 2024-10-17T16:21:03.025Z] 16:21:03     INFO - Todo:    0
[task 2024-10-17T16:21:03.025Z] 16:21:03     INFO - Mode:    e10s
[task 2024-10-17T16:21:03.026Z] 16:21:03     INFO - *** End BrowserChrome Test Results ***
[task 2024-10-17T16:21:03.026Z] 16:21:03     INFO - GECKO(5932) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_172918082679384\AppData\Local\Temp\tmp9wtewxre.mozrunner\runtests_leaks_tab_pid6088.log
[task 2024-10-17T16:21:03.027Z] 16:21:03     INFO - GECKO(5932) | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2024-10-17T16:21:03.027Z] 16:21:03     INFO - GECKO(5932) | [Child 6088, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:467
[task 2024-10-17T16:21:03.596Z] 16:21:03     INFO - GECKO(5932) | [Parent 788, Main Thread] WARNING: '!CanSend() || !mManager || !mManager->CanSend()', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorParent.cpp:42
[task 2024-10-17T16:21:03.644Z] 16:21:03     INFO - GECKO(5932) | [Child 4460: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 18a9c9ef000 == 3 [pid = 4460] [id = 4] [url = moz-extension://ddefa8be-45de-4971-af5a-89d41d180331/_generated_background_page.html]
[task 2024-10-17T16:21:03.654Z] 16:21:03     INFO - GECKO(5932) | [Child 4460: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 18a9c9ec400 == 2 [pid = 4460] [id = 1] [url = moz-extension://ba02938f-6728-4c50-b4c6-4728f928d162/_generated_background_page.html]
[task 2024-10-17T16:21:03.675Z] 16:21:03     INFO - GECKO(5932) | [Child 4460: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 18a9c9ea000 == 1 [pid = 4460] [id = 0] [url = moz-extension://21a7213f-9561-4baa-a0fc-c9b61364c00f/_generated_background_page.html]
[task 2024-10-17T16:21:03.678Z] 16:21:03     INFO - GECKO(5932) | [Child 4460: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 18aa440e000 == 0 [pid = 4460] [id = 5] [url = moz-extension://bc5efe19-c755-403d-82cf-627dad7926e3/_generated_background_page.html]
[task 2024-10-17T16:21:03.690Z] 16:21:03     INFO - GECKO(5932) | [Parent 788, Main Thread] WARNING: BounceTrackingState::OnDocumentStartRequest failed.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/netwerk/ipc/DocumentLoadListener.cpp:2631
[task 2024-10-17T16:21:03.754Z] 16:21:03     INFO - GECKO(5932) | 1729182063762	Marionette	TRACE	Received observer notification quit-application
[task 2024-10-17T16:21:03.754Z] 16:21:03     INFO - GECKO(5932) | 1729182063762	Marionette	INFO	Stopped listening on port 2828
[task 2024-10-17T16:21:03.768Z] 16:21:03     INFO - GECKO(5932) | 1729182063767	Marionette	DEBUG	Marionette stopped listening
[task 2024-10-17T16:21:03.785Z] 16:21:03     INFO - GECKO(5932) | [Child 5828: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (13466be3800) [pid = 5828] [serial = 3] [outer = 1346dc14800]
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - TEST-UNEXPECTED-FAIL | browser/components/screenshots/tests/browser/browser_text_selectionAPI_test.js | Uncaught exception received from previously timed out test bound test_textSelectedDuringScreenshot - at resource://testing-common/BrowserTestUtils.sys.mjs:501 - Error: The window unloaded while we were waiting for the browser to load - this should never happen.
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - Stack trace:
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - listener@resource://testing-common/BrowserTestUtils.sys.mjs:501:15
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - EventListener.handleEvent*browserLoaded/<@resource://testing-common/BrowserTestUtils.sys.mjs:516:27
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - browserLoaded@resource://testing-common/BrowserTestUtils.sys.mjs:466:12
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - openNewForegroundTab@resource://testing-common/BrowserTestUtils.sys.mjs:228:40
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:117:38
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - test_textSelectedDuringScreenshot@chrome://mochitests/content/browser/browser/components/screenshots/tests/browser/browser_text_selectionAPI_test.js:7:26
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - handleTask@chrome://mochikit/content/browser-test.js:1145:26
[task 2024-10-17T16:21:03.836Z] 16:21:03     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1217:18
```