Bug: Intermittent browser/extensions/screenshots/test/browser/browser_screenshots_download.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-10-03 16:42:50+00:00
Resolved: 2025-02-10 12:07:29+00:00

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

---
```
[task 2024-10-03T15:53:56.837Z] 15:53:56     INFO - TEST-PASS | browser/extensions/screenshots/test/browser/browser_screenshots_download.js | The screenshot toolbar button is visible - 
[task 2024-10-03T15:53:56.838Z] 15:53:56     INFO - Buffered messages finished
[task 2024-10-03T15:53:56.839Z] 15:53:56     INFO - TEST-UNEXPECTED-FAIL | browser/extensions/screenshots/test/browser/browser_screenshots_download.js | Test timed out - 
[task 2024-10-03T15:53:56.842Z] 15:53:56     INFO - Console message: [JavaScript Error: "WebExtension context not found!" {file: "resource://gre/modules/ExtensionParent.sys.mjs" line: 1285}]
[task 2024-10-03T15:53:56.842Z] 15:53:56     INFO - getContextById@resource://gre/modules/ExtensionParent.sys.mjs:1285:13
[task 2024-10-03T15:53:56.842Z] 15:53:56     INFO - recvAPICall@resource://gre/modules/ExtensionParent.sys.mjs:1114:24
[task 2024-10-03T15:53:56.842Z] 15:53:56     INFO - _recv@resource://gre/modules/ConduitsChild.sys.mjs:77:20
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - receiveMessage@resource://gre/modules/ConduitsParent.sys.mjs:453:20
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - JSActor query*_send@resource://gre/modules/ConduitsChild.sys.mjs:61:11
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - _send@resource://gre/modules/ConduitsChild.sys.mjs:111:18
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - callParentAsyncFunction@resource://gre/modules/ExtensionChild.sys.mjs:911:18
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - callAsyncFunction@resource://gre/modules/ExtensionChild.sys.mjs:630:33
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - stub@resource://gre/modules/Schemas.sys.mjs:2897:30
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - @moz-extension://697b4756-9063-4d04-b84e-bdad0612ecf6/background/startBackground.js:67:24
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - applySafeWithoutClone@resource://gre/modules/ExtensionCommon.sys.mjs:635:24
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - fire@resource://gre/modules/ExtensionChild.sys.mjs:836:37
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - recvRunListener@resource://gre/modules/ExtensionChild.sys.mjs:840:13
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - _recv@resource://gre/modules/ConduitsChild.sys.mjs:77:20
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - receiveMessage@resource://gre/modules/ConduitsChild.sys.mjs:189:20
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - JSActor query*_send@resource://gre/modules/ConduitsChild.sys.mjs:59:20
[task 2024-10-03T15:53:56.843Z] 15:53:56     INFO - _send@resource://gre/modules/ConduitsParent.sys.mjs:288:18
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - listener@resource://gre/modules/ExtensionParent.sys.mjs:1198:45
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - applySafeWithoutClone@resource://gre/modules/ExtensionCommon.sys.mjs:635:24
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - applySafe@resource://gre/modules/ExtensionParent.sys.mjs:656:17
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - sync@resource://gre/modules/ExtensionCommon.sys.mjs:2742:37
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - observer@jar:file:///D:/task_172796646996587/build/application/firefox/browser/features/screenshots@mozilla.org.xpi!/experiments/screenshots/api.js:44:22
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - onCommand@resource:///modules/CustomizableWidgets.sys.mjs:489:22
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - doWidgetCommand@resource:///modules/CustomizableUI.sys.mjs:2114:27
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - handleWidgetCommand@resource:///modules/CustomizableUI.sys.mjs:2171:12
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - synthesizeMouseAtPoint@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:642:13
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - synthesizeMouse@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:545:10
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - synthesizeMouseAtCenter@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:730:10
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - triggerUIFromToolbar@chrome://mochitests/content/browser/browser/extensions/screenshots/test/browser/head.js:34:16
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - test_fullPageScreenshot/<@chrome://mochitests/content/browser/browser/extensions/screenshots/test/browser/browser_screenshots_download.js:34:22
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:149:22
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - async*test_fullPageScreenshot@chrome://mochitests/content/browser/browser/extensions/screenshots/test/browser/browser_screenshots_download.js:2:26
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2024-10-03T15:53:56.844Z] 15:53:56     INFO - 
[task 2024-10-03T15:53:56.845Z] 15:53:56     INFO - GECKO(4540) | JavaScript error: , line 0: AbortError: Actor 'Conduits' destroyed before query 'RunListener' was resolved
[task 2024-10-03T15:53:56.846Z] 15:53:56     INFO - in waitForUIContent content function, iframeSelector: #firefox-screenshots-preselection-iframe, elemSelector: button.full-page
[task 2024-10-03T15:53:56.846Z] 15:53:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-10-03T15:53:56.852Z] 15:53:56     INFO - TEST-UNEXPECTED-FAIL | browser/extensions/screenshots/test/browser/browser_screenshots_download.js | A promise chain failed to handle a rejection: Actor 'Conduits' destroyed before query 'RunListener' was resolved - stack: listener@resource://gre/modules/ExtensionParent.sys.mjs:1229:5
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - Async*applySafeWithoutClone@resource://gre/modules/ExtensionCommon.sys.mjs:635:24
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - applySafe@resource://gre/modules/ExtensionParent.sys.mjs:656:17
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - sync@resource://gre/modules/ExtensionCommon.sys.mjs:2742:37
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - observer@jar:file:///D:/task_172796646996587/build/application/firefox/browser/features/screenshots@mozilla.org.xpi!/experiments/screenshots/api.js:44:22
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - onCommand@resource:///modules/CustomizableWidgets.sys.mjs:489:22
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - doWidgetCommand@resource:///modules/CustomizableUI.sys.mjs:2114:27
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - handleWidgetCommand@resource:///modules/CustomizableUI.sys.mjs:2171:12
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - synthesizeMouseAtPoint@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:642:13
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - synthesizeMouse@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:545:10
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - synthesizeMouseAtCenter@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:730:10
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - triggerUIFromToolbar@chrome://mochitests/content/browser/browser/extensions/screenshots/test/browser/head.js:34:16
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - test_fullPageScreenshot/<@chrome://mochitests/content/browser/browser/extensions/screenshots/test/browser/browser_screenshots_download.js:34:22
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:149:22
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - async*test_fullPageScreenshot@chrome://mochitests/content/browser/browser/extensions/screenshots/test/browser/browser_screenshots_download.js:2:26
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2024-10-03T15:53:56.854Z] 15:53:56     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - Rejection date: Thu Oct 03 2024 15:53:56 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":559,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":526,"lineNumber":766,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"timeoutFn","sourceId":526,"lineNumber":1437,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":526,"lineNumber":1379,"columnNumber":45,"sourceLine":"","asyncCause":"setTimeout handler","asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":526,"lineNumber":1120,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":550,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"setTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1379:45\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*timeoutFn@chrome://mochikit/content/browser-test.js:1437:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1379:45\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"nextTest@chrome://mochikit/content/browser-test.js:766:29\nasync*timeoutFn@chrome://mochikit/content/browser-test.js:1437:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1379:45\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nnextTest@chrome://mochikit/content/browser-test.js:766:29\nasync*timeoutFn@chrome://mochikit/content/browser-test.js:1437:18\nsetTimeout handler*Tester_execTest@chrome://mochikit/content/browser-test.js:1379:45\nnextTest/<@chrome://mochikit/content/browser-test.js:1120:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - Stack trace:
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - chrome://mochikit/content/browser-test.js:nextTest:766
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1437
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1379
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2024-10-03T15:53:56.855Z] 15:53:56     INFO - Console message: [JavaScript Error: "AbortError: Actor 'Conduits' destroyed before query 'RunListener' was resolved"]
[task 2024-10-03T15:53:57.310Z] 15:53:57     INFO - in waitForUIContent, no visible iframe yet
[task 2024-10-03T15:53:57.324Z] 15:53:57     INFO - in waitForUIContent, no visible iframe yet
[task 2024-10-03T15:53:57.325Z] 15:53:57     INFO - in waitForUIContent, no visible iframe yet
[task 2024-10-03T15:53:57.325Z] 15:53:57     INFO - in waitForUIContent, no visible iframe yet
[task 2024-10-03T15:53:57.326Z] 15:53:57     INFO - in waitForUIContent, no visible iframe yet
[task 2024-10-03T15:53:57.405Z] 15:53:57     INFO - in waitForUIContent, no visible iframe yet
[task 2024-10-03T15:53:57.421Z] 15:53:57     INFO - GECKO(4540) | MEMORY STAT | vsize 2104246MB | vsizeMaxContiguous 66739399MB | residentFast 316MB | heapAllocated 141MB
[task 2024-10-03T15:53:57.433Z] 15:53:57     INFO - TEST-OK | browser/extensions/screenshots/test/browser/browser_screenshots_download.js | took 70361ms
```