Bug: Intermittent browser/components/downloads/test/browser/browser_download_spam_protection.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-08-01 21:38:01+00:00
Resolved: 2022-08-13 13:06:03+00:00

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

---
```
[task 2022-08-01T20:37:01.007Z] 20:37:01     INFO - TEST-START | browser/components/downloads/test/browser/browser_download_spam_protection.js
[task 2022-08-01T20:37:01.027Z] 20:37:01     INFO - GECKO(2298) | [Child 2309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 112442800 == 1 [pid = 2309] [id = 0]
[task 2022-08-01T20:37:01.027Z] 20:37:01     INFO - GECKO(2298) | [Child 2309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (10df9bf10) [pid = 2309] [serial = 1] [outer = 0]
[task 2022-08-01T20:37:01.028Z] 20:37:01     INFO - GECKO(2298) | [Child 2309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (112442c00) [pid = 2309] [serial = 2] [outer = 10df9bf10]
[task 2022-08-01T20:37:01.032Z] 20:37:01     INFO - GECKO(2298) | [Child 2306, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-08-01T20:37:01.057Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 13d0f9000 == 11 [pid = 2298] [id = 15] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.058Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 142ebbc00 == 10 [pid = 2298] [id = 14] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.059Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 141a69c00 == 9 [pid = 2298] [id = 10] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.060Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 144826c00 == 8 [pid = 2298] [id = 18] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.072Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 141ac8400 == 7 [pid = 2298] [id = 13] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.073Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 141a6fc00 == 6 [pid = 2298] [id = 11] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.073Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 141a72800 == 5 [pid = 2298] [id = 12] [url = chrome://global/content/commonDialog.xhtml]
[task 2022-08-01T20:37:01.505Z] 20:37:01     INFO - GECKO(2298) | [Child 2309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (112445c00) [pid = 2309] [serial = 3] [outer = 10df9bf10]
[task 2022-08-01T20:37:01.548Z] 20:37:01     INFO - GECKO(2298) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /var/folders/50/tw54x5lx5jq8llv3_s81x9rr000014/T/tmpg98h_o_n.mozrunner/runtests_leaks_tab_pid2322.log
[task 2022-08-01T20:37:01.548Z] 20:37:01     INFO - GECKO(2298) | [2322, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:339
[task 2022-08-01T20:37:01.675Z] 20:37:01     INFO - GECKO(2298) | [Parent 2298, Main Thread] WARNING: The dialog should nullify the dialog progress listener: file /builds/worker/checkouts/gecko/uriloader/exthandler/nsExternalHelperAppService.cpp:2321
<...>
[task 2022-08-01T20:37:14.488Z] 20:37:14     INFO - GECKO(2298) | [Child 2309: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (112442c00) [pid = 2309] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-08-01T20:37:19.496Z] 20:37:19     INFO - GECKO(2298) | 2022-08-01 20:37:19.495 firefox[2298:41737] Persistent UI failed to open file file:///Users/cltbld/Library/Saved%20Application%20State/org.mozilla.nightlydebug.savedState/window_1.data: No such file or directory (2)
[task 2022-08-01T20:38:31.020Z] 20:38:31     INFO - TEST-INFO | started process screencapture
[task 2022-08-01T20:38:31.141Z] 20:38:31     INFO - TEST-INFO | screencapture: exit 0
[task 2022-08-01T20:38:31.141Z] 20:38:31     INFO - Buffered messages logged at 20:37:01
[task 2022-08-01T20:38:31.142Z] 20:38:31     INFO - Entering setup bound 
[task 2022-08-01T20:38:31.142Z] 20:38:31     INFO - Leaving setup bound 
[task 2022-08-01T20:38:31.142Z] 20:38:31     INFO - Entering test bound check_download_spam_ui
[task 2022-08-01T20:38:31.143Z] 20:38:31     INFO - Waiting on all blocked downloads.
[task 2022-08-01T20:38:31.143Z] 20:38:31     INFO - Buffered messages finished
[task 2022-08-01T20:38:31.144Z] 20:38:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_download_spam_protection.js | Test timed out - 
[task 2022-08-01T20:38:31.144Z] 20:38:31     INFO - removing /var/folders/50/tw54x5lx5jq8llv3_s81x9rr000014/T/dm-ui-test.file
[task 2022-08-01T20:38:31.144Z] 20:38:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-01T20:38:31.145Z] 20:38:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_download_spam_protection.js | Cleanup function threw an exception - at chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_download_spam_protection.js:62 - TypeError: can't access property "clearDownloadSpam", DownloadIntegration.downloadSpamProtection is undefined
[task 2022-08-01T20:38:31.146Z] 20:38:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-01T20:38:31.146Z] 20:38:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_download_spam_protection.js | Uncaught exception received from previously timed out test - blocked-automatic-download observer not removed before the end of test
[task 2022-08-01T20:38:31.370Z] 20:38:31     INFO - GECKO(2298) | MEMORY STAT | vsize 7960MB | residentFast 383MB | heapAllocated 121MB
[task 2022-08-01T20:38:31.371Z] 20:38:31     INFO - TEST-OK | browser/components/downloads/test/browser/browser_download_spam_protection.js | took 90364ms
[task 2022-08-01T20:38:31.371Z] 20:38:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-01T20:38:31.372Z] 20:38:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_download_spam_protection.js | Found a tab after previous test timed out: https://example.com/browser/browser/components/downloads/test/browser/test_spammy_page.html - 
[task 2022-08-01T20:38:31.391Z] 20:38:31     INFO - GECKO(2298) | [Child 2309, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-08-01T20:38:31.404Z] 20:38:31     INFO - GECKO(2298) | [Child 2304: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 11e04e400 == 1 [pid = 2304] [id = 5]
[task 2022-08-01T20:38:31.404Z] 20:38:31     INFO - GECKO(2298) | [Child 2304: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (10c09bf10) [pid = 2304] [serial = 14] [outer = 0]
[task 2022-08-01T20:38:31.405Z] 20:38:31     INFO - GECKO(2298) | [Child 2304: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (11e04e800) [pid = 2304] [serial = 15] [outer = 10c09bf10]
[task 2022-08-01T20:38:31.410Z] 20:38:31     INFO - GECKO(2298) | [Child 2306, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-08-01T20:38:31.424Z] 20:38:31     INFO - checking window state
[task 2022-08-01T20:38:31.455Z] 20:38:31     INFO - TEST-START | browser/components/downloads/test/browser/browser_download_starts_in_tmp.js
```