Bug: Intermittent browser/components/tests/browser/browser_to_handle_telemetry.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-03-04 17:43:39+00:00
Resolved: 2024-05-06 12:01:54+00:00

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

---
```
TEST-PASS | browser/components/tests/browser/browser_to_handle_telemetry.js | launched to handle 'mailto' 0 times - false == false - 
[task 2024-03-04T16:51:37.215Z] 16:51:37     INFO - Leaving test bound test_launched_to_handle_registered_protocol
[task 2024-03-04T16:51:37.216Z] 16:51:37     INFO - Entering test bound test_launched_to_handle_registered_file_type
[task 2024-03-04T16:51:37.216Z] 16:51:37     INFO - Buffered messages finished
[task 2024-03-04T16:51:37.217Z] 16:51:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_to_handle_telemetry.js | Test timed out - 
[task 2024-03-04T16:51:37.217Z] 16:51:37     INFO - GECKO(1532) | Completed ShutdownLeaks collections in process 9440
[task 2024-03-04T16:51:37.217Z] 16:51:37     INFO - TEST-START | Shutdown
[task 2024-03-04T16:51:37.218Z] 16:51:37     INFO - Browser Chrome Test Summary
[task 2024-03-04T16:51:37.219Z] 16:51:37     INFO - Passed:  267
[task 2024-03-04T16:51:37.219Z] 16:51:37     INFO - Failed:  1
[task 2024-03-04T16:51:37.219Z] 16:51:37     INFO - Todo:    0
[task 2024-03-04T16:51:37.220Z] 16:51:37     INFO - Mode:    e10s
[task 2024-03-04T16:51:37.220Z] 16:51:37     INFO - *** End BrowserChrome Test Results ***
[task 2024-03-04T16:51:37.221Z] 16:51:37     INFO - GECKO(1532) | [Child 9532, 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-03-04T16:51:37.221Z] 16:51:37     INFO - GECKO(1532) | [Child 9532, 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-03-04T16:51:37.223Z] 16:51:37     INFO - GECKO(1532) | [Child 9532, 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-03-04T16:51:37.224Z] 16:51:37     INFO - GECKO(1532) | [Child 9532: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL b58fd00 == 3 [pid = 9532] [id = 4] [url = moz-extension://f2dfa8f0-7283-4784-8599-a4f6a9f0528f/_generated_background_page.html]
[task 2024-03-04T16:51:37.224Z] 16:51:37     INFO - GECKO(1532) | [Child 9532: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL a79fa00 == 2 [pid = 9532] [id = 1] [url = moz-extension://6ca750b3-8b13-4abc-a560-32ddaffbc1f8/_generated_background_page.html]
[task 2024-03-04T16:51:37.225Z] 16:51:37     INFO - GECKO(1532) | [Child 9532, 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-03-04T16:51:37.227Z] 16:51:37     INFO - GECKO(1532) | [Child 9532, 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-03-04T16:51:37.227Z] 16:51:37     INFO - GECKO(1532) | [Child 9532, 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-03-04T16:51:37.238Z] 16:51:37     INFO - GECKO(1532) | 1709571097238	Marionette	TRACE	Received observer notification quit-application
[task 2024-03-04T16:51:37.239Z] 16:51:37     INFO - GECKO(1532) | 1709571097239	Marionette	INFO	Stopped listening on port 2828
[task 2024-03-04T16:51:37.243Z] 16:51:37     INFO - GECKO(1532) | 1709571097243	Marionette	DEBUG	Marionette stopped listening
[task 2024-03-04T16:51:37.278Z] 16:51:37     INFO - GECKO(1532) | [GPU 3568, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:395
[task 2024-03-04T16:51:37.298Z] 16:51:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-03-04T16:51:37.300Z] 16:51:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_to_handle_telemetry.js | Uncaught exception received from previously timed out test bound test_launched_to_handle_registered_file_type - 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-03-04T16:51:37.300Z] 16:51:37     INFO - Stack trace:
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - listener@resource://testing-common/BrowserTestUtils.sys.mjs:538:15
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - EventListener.handleEvent*browserLoaded/<@resource://testing-common/BrowserTestUtils.sys.mjs:553:27
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - browserLoaded@resource://testing-common/BrowserTestUtils.sys.mjs:503:12
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - observe@resource://testing-common/BrowserTestUtils.sys.mjs:921:36
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - async*openWindow@resource:///modules/BrowserWindowTracker.sys.mjs:335:27
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - openBrowserWindow@resource:///modules/BrowserContentHandler.sys.mjs:425:36
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - dch_handle@resource:///modules/BrowserContentHandler.sys.mjs:1471:26
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - handleCommandLine@chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js:35:18
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - test_launched_to_handle_registered_file_type@chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js:162:9
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-03-04T16:51:37.301Z] 16:51:37     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-03-04T16:51:37.302Z] 16:51:37     INFO - Entering test bound test_invoked_no_osint
[task 2024-03-04T16:51:37.302Z] 16:51:37     INFO - GECKO(1532) | JavaScript error: resource:///modules/BrowserWindowTracker.sys.mjs, line 344: TypeError: can't access property "addEventListener", win is null
[task 2024-03-04T16:51:37.304Z] 16:51:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_to_handle_telemetry.js | Uncaught exception received from previously timed out test bound test_invoked_no_osint - [Exception... "[JavaScript Error: "can't access property "addEventListener", win is null" {file: "resource:///modules/BrowserWindowTracker.sys.mjs" line: 344}]'[JavaScript Error: "can't access property "addEventListener", win is null" {file: "resource:///modules/BrowserWindowTracker.sys.mjs" line: 344}]' when calling method: [nsICommandLineHandler::handle]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js :: handleCommandLine :: line 35"  data: yes]
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - Stack trace:
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - handleCommandLine@chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js:35:18
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - test_invoked_no_osint@chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js:178:9
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-03-04T16:51:37.307Z] 16:51:37     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-03-04T16:51:37.308Z] 16:51:37     INFO - Entering test bound test_launched_no_osint
[task 2024-03-04T16:51:37.308Z] 16:51:37     INFO - GECKO(1532) | JavaScript error: resource:///modules/BrowserWindowTracker.sys.mjs, line 344: TypeError: can't access property "addEventListener", win is null
[task 2024-03-04T16:51:37.309Z] 16:51:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-03-04T16:51:37.312Z] 16:51:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_to_handle_telemetry.js | Uncaught exception received from previously timed out test bound test_launched_no_osint - [Exception... "[JavaScript Error: "can't access property "addEventListener", win is null" {file: "resource:///modules/BrowserWindowTracker.sys.mjs" line: 344}]'[JavaScript Error: "can't access property "addEventListener", win is null" {file: "resource:///modules/BrowserWindowTracker.sys.mjs" line: 344}]' when calling method: [nsICommandLineHandler::handle]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js :: handleCommandLine :: line 35"  data: yes]
[task 2024-03-04T16:51:37.312Z] 16:51:37     INFO - Stack trace:
[task 2024-03-04T16:51:37.312Z] 16:51:37     INFO - handleCommandLine@chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js:35:18
[task 2024-03-04T16:51:37.312Z] 16:51:37     INFO - test_launched_no_osint@chrome://mochitests/content/browser/browser/components/tests/browser/browser_to_handle_telemetry.js:190:9
[task 2024-03-04T16:51:37.312Z] 16:51:37     INFO - handleTask@chrome://mochikit/content/browser-test.js:1139:26
<...>
```