Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-10-26 16:10:53+00:00
Resolved: 2024-08-14 12:01:42+00:00

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

---
```
INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | Should show the dialog for sandbox allow-scripts - 
[task 2022-10-26T15:09:08.970Z] 15:09:08     INFO - runSandboxTest options: {"blocked":false,"sandbox":"allow-scripts","useCSPSandbox":true,"triggerMethod":"untrustedLocationAPI"}
[task 2022-10-26T15:09:08.970Z] 15:09:08     INFO - Buffered messages logged at 15:09:08
[task 2022-10-26T15:09:08.970Z] 15:09:08     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | Should show the dialog for sandbox allow-scripts - 
[task 2022-10-26T15:09:08.970Z] 15:09:08     INFO - runSandboxTest options: {"blocked":false,"sandbox":"allow-scripts allow-top-navigation-to-custom-protocols","useCSPSandbox":true}
[task 2022-10-26T15:09:08.970Z] 15:09:08     INFO - Buffered messages finished
[task 2022-10-26T15:09:08.970Z] 15:09:08     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | Uncaught exception in test - [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.sendMouseEvent]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://mochikit/content/tests/SimpleTest/EventUtils.js :: synthesizeMouseAtPoint :: line 648"  data: no]
[task 2022-10-26T15:09:08.971Z] 15:09:08     INFO - Stack trace:
[task 2022-10-26T15:09:08.971Z] 15:09:08     INFO - synthesizeMouseAtPoint@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:648:13
[task 2022-10-26T15:09:08.972Z] 15:09:08     INFO - synthesizeMouse@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:566:10
[task 2022-10-26T15:09:08.972Z] 15:09:08     INFO - synthesizeMouseAtCenter@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:739:10
[task 2022-10-26T15:09:08.972Z] 15:09:08     INFO - @chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/head.js:442:32
[task 2022-10-26T15:09:08.972Z] 15:09:08     INFO - Leaving test bound test_sandbox_csp
[task 2022-10-26T15:09:08.973Z] 15:09:08     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-10-26T15:09:08.973Z] 15:09:08     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | A promise chain failed to handle a rejection: dialogopen listener not removed before the end of test - stack: (No stack available.)
[task 2022-10-26T15:09:08.973Z] 15:09:08     INFO - Rejection date: Wed Oct 26 2022 15:09:08 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 270
[task 2022-10-26T15:09:08.973Z] 15:09:08     INFO - Stack trace:
[task 2022-10-26T15:09:08.973Z] 15:09:08     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:270
[task 2022-10-26T15:09:08.974Z] 15:09:08     INFO - chrome://mochikit/content/browser-test.js:nextTest:680
[task 2022-10-26T15:09:08.974Z] 15:09:08     INFO - GECKO(17314) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 119: uncaught exception: dialogopen listener not removed before the end of test
[task 2022-10-26T15:09:08.974Z] 15:09:08     INFO - Console message: [JavaScript Error: "uncaught exception: dialogopen listener not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 119}]
[task 2022-10-26T15:09:08.975Z] 15:09:08     INFO - GECKO(17314) | MEMORY STAT | vsize 11968MB | residentFast 609MB | heapAllocated 359MB
[task 2022-10-26T15:09:08.975Z] 15:09:08     INFO - TEST-OK | uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | took 3759ms
[task 2022-10-26T15:09:08.975Z] 15:09:08     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-10-26T15:09:08.975Z] 15:09:08     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_protocol_custom_sandbox_csp.js | Found an unexpected tab at the end of test run: https://example.com/browser/uriloader/exthandler/tests/mochitest//protocol_custom_sandbox_helper.sjs - 
[task 2022-10-26T15:09:09.023Z] 15:09:09     INFO - checking window state
[task 2022-10-26T15:09:09.080Z] 15:09:09     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_protocolhandler_loop.js
```