Bug: Intermittent browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-02-22 16:23:51+00:00
Resolved: 2025-01-20 12:07:31+00:00

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

---
```
[task 2023-02-22T15:45:52.263Z] 15:45:52     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | download target is a nsIFile - 
[task 2023-02-22T15:45:52.263Z] 15:45:52     INFO - Download succeeded? true
[task 2023-02-22T15:45:52.263Z] 15:45:52     INFO - Download target exists? true
[task 2023-02-22T15:45:52.263Z] 15:45:52     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | moving the mouse resets the richlistbox's selected index - 
[task 2023-02-22T15:45:52.271Z] 15:45:52     INFO - trigger the context menu
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - Buffered messages finished
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Test timed out - 
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Uncaught exception received from previously timed out test bound Completed txt download with application/octet-stream and improvements pref enabled - "popupshown listener not removed before the end of test"
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - Entering test bound Download with file deleted and improvements pref enabled
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - Setting browser.download.improvements_to_download_panel to true
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - {"state":1,"contentType":"text/plain","target":{},"source":{"referrerInfo":{}},"deleted":true}
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - Download succeeded? true
[task 2023-02-22T15:45:52.278Z] 15:45:52     INFO - Download target exists? true
[task 2023-02-22T15:45:52.474Z] 15:45:52     INFO - GECKO(3204) | MEMORY STAT | vsize 1194MB | vsizeMaxContiguous 241MB | residentFast 340MB | heapAllocated 355MB
[task 2023-02-22T15:45:52.474Z] 15:45:52     INFO - TEST-OK | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | took 45360ms
[task 2023-02-22T15:45:52.489Z] 15:45:52     INFO - checking window state
[task 2023-02-22T15:45:52.521Z] 15:45:52     INFO - TEST-START | browser/components/downloads/test/browser/browser_downloads_panel_ctrl_click.js
[task 2023-02-22T15:45:52.872Z] 15:45:52     INFO - GECKO(3204) | MEMORY STAT | vsize 1194MB | vsizeMaxContiguous 241MB | residentFast 340MB | heapAllocated 355MB
[task 2023-02-22T15:45:52.872Z] 15:45:52     INFO - TEST-OK | browser/components/downloads/test/browser/browser_downloads_panel_ctrl_click.js | took 343ms
[task 2023-02-22T15:45:52.880Z] 15:45:52     INFO - checking window state
[task 2023-02-22T15:45:52.927Z] 15:45:52     INFO - TEST-START | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js
[task 2023-02-22T15:45:53.068Z] 15:45:53     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-22T15:45:53.068Z] 15:45:53     INFO - Buffered messages logged at 15:45:52
[task 2023-02-22T15:45:53.068Z] 15:45:53     INFO - Entering setup bound 
[task 2023-02-22T15:45:53.068Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | At the start of the test, there should be 0 downloads - 
[task 2023-02-22T15:45:53.068Z] 15:45:53     INFO - Leaving setup bound 
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - Entering test bound test_downloads_panel_downloads_button
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - Buffered messages finished
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js | Uncaught exception received from previously timed out test bound Download with file deleted and improvements pref enabled - at chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js:497 - TypeError: EventUtils.synthesizeMouse is not a function
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - Stack trace:
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - testDownloadContextMenu@chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_downloads_panel_context_menu.js:497:14
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - GECKO(3204) | JavaScript error: chrome://mochikit/content/browser-test.js, line 1100: TypeError: currentScope.__tasks is null
[task 2023-02-22T15:45:53.075Z] 15:45:53     INFO - Console message: [JavaScript Error: "TypeError: currentScope.__tasks is null" {file: "chrome://mochikit/content/browser-test.js" line: 1100}]
[task 2023-02-22T15:45:53.224Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | Downloads Panel should not be visible - 
[task 2023-02-22T15:45:53.224Z] 15:45:53     INFO - Manually open the download panel to view list of downloads
[task 2023-02-22T15:45:53.224Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | downloadsListBox richlistitem should be visible - 
[task 2023-02-22T15:45:53.224Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | downloadsListBox should have 1 download - 
[task 2023-02-22T15:45:53.224Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | All download items in the downloads panel should not be disabled - 
[task 2023-02-22T15:45:53.224Z] 15:45:53     INFO - Cleaning up downloads
[task 2023-02-22T15:45:53.232Z] 15:45:53     INFO - removing C:\Users\task_167707664929755\AppData\Local\Temp\dm-ui-test.file
[task 2023-02-22T15:45:53.232Z] 15:45:53     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | A promise chain failed to handle a rejection: currentScope.__tasks is null - stack: _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1100:13
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - Rejection date: Wed Feb 22 2023 15:45:53 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":558,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":526,"lineNumber":1065,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}}
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - Stack trace:
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - chrome://mochikit/content/browser-test.js:handleTask:1065
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - Leaving test bound test_downloads_panel_downloads_button
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - Entering test bound test_downloads_panel_new_download
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - GECKO(3204) | Waiting for browser load
[task 2023-02-22T15:45:53.239Z] 15:45:53     INFO - GECKO(3204) | Waiting for browser state change
[task 2023-02-22T15:45:53.263Z] 15:45:53     INFO - GECKO(3204) | Saw state f0001 and status 0
[task 2023-02-22T15:45:53.358Z] 15:45:53     INFO - GECKO(3204) | Saw state c0010 and status 0
[task 2023-02-22T15:45:53.358Z] 15:45:53     INFO - GECKO(3204) | Browser got expected state change https://example.com/browser/browser/components/downloads/test/browser/foo.txt
[task 2023-02-22T15:45:53.654Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | downloadsListBox richlistitem should be visible - 
[task 2023-02-22T15:45:53.654Z] 15:45:53     INFO - downloadsListBox should have 1 download
[task 2023-02-22T15:45:53.654Z] 15:45:53     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | All download items in the downloads panel should first be disabled - 
[task 2023-02-22T15:45:55.202Z] 15:45:55     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | Should have waited at least another 750ms after this keypress. - 1677080755222 > 1677080754972 - 
[task 2023-02-22T15:45:55.202Z] 15:45:55     INFO - All download items in the download panel should now be enabled
[task 2023-02-22T15:45:55.202Z] 15:45:55     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | openDownload should have been called - 
[task 2023-02-22T15:45:55.210Z] 15:45:55     INFO - removing C:\Users\task_167707664929755\AppData\LocalLow\Mozilla\Temp-{4a42e797-a6d9-4471-87e9-2062b38e6ef4}\testsavedir1367396209\foo.txt
[task 2023-02-22T15:45:55.219Z] 15:45:55     INFO - Leaving test bound test_downloads_panel_new_download
[task 2023-02-22T15:45:55.219Z] 15:45:55     INFO - Entering test bound test_downloads_panel_close_panel_early
[task 2023-02-22T15:45:55.219Z] 15:45:55     INFO - Creating mock completed downloads
[task 2023-02-22T15:45:55.219Z] 15:45:55     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | Downloads Panel should not be visible - 
[task 2023-02-22T15:45:55.219Z] 15:45:55     INFO - Manually open the download panel to view list of downloads
[task 2023-02-22T15:45:55.227Z] 15:45:55     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | downloadsListBox richlistitem should be visible - 
[task 2023-02-22T15:45:55.227Z] 15:45:55     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | downloadsListBox should have 1 download - 
[task 2023-02-22T15:45:55.227Z] 15:45:55     INFO - downloadsListBox 'disabled' attribute should not exist
[task 2023-02-22T15:45:55.227Z] 15:45:55     INFO - Cleaning up downloads
[task 2023-02-22T15:45:55.227Z] 15:45:55     INFO - Leaving test bound test_downloads_panel_close_panel_early
[task 2023-02-22T15:45:55.563Z] 15:45:55     INFO - GECKO(3204) | MEMORY STAT | vsize 1198MB | vsizeMaxContiguous 241MB | residentFast 345MB | heapAllocated 360MB
[task 2023-02-22T15:45:55.563Z] 15:45:55     INFO - TEST-OK | browser/components/downloads/test/browser/browser_downloads_panel_disable_items.js | took 2639ms
[task 2023-02-22T15:45:55.578Z] 15:45:55     INFO - checking window state
[task 2023-02-22T15:45:55.625Z] 15:45:55     INFO - TEST-START | browser/components/downloads/test/browser/browser_downloads_panel_dontshow.js
```