Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_save_filenames.js | open link20 gook2.exe was downloaded with the correct name when opened as a url - Got "gook1.png", expected "gook2.exe"
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-05-06 21:59:10+00:00
Resolved: 2022-07-26 00:15:59+00:00

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

---
```
[task 2022-05-06T21:31:40.143Z] 21:31:40     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_save_filenames.js | open link19 gook1.png was downloaded with the correct name when opened as a url - 
[task 2022-05-06T21:31:40.144Z] 21:31:40     INFO - Buffered messages finished
[task 2022-05-06T21:31:40.145Z] 21:31:40     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_save_filenames.js | open link20 gook2.exe was downloaded with the correct name when opened as a url - Got "gook1.png", expected "gook2.exe"
[task 2022-05-06T21:31:40.145Z] 21:31:40     INFO - Stack trace:
[task 2022-05-06T21:31:40.145Z] 21:31:40     INFO - chrome://mochikit/content/browser-test.js:test_is:1422
[task 2022-05-06T21:31:40.146Z] 21:31:40     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_save_filenames.js:saveas_files:456
[task 2022-05-06T21:31:40.147Z] 21:31:40     INFO - GECKO(8097) | [Child 13658: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fad4d442400 == 1 [pid = 13658] [id = 0]
[task 2022-05-06T21:31:40.148Z] 21:31:40     INFO - GECKO(8097) | [Child 13658: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fad63295bc0) [pid = 13658] [serial = 1] [outer = 0]
[task 2022-05-06T21:31:40.149Z] 21:31:40     INFO - GECKO(8097) | [Child 13658: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fad4d442800) [pid = 13658] [serial = 2] [outer = 7fad63295bc0]
[task 2022-05-06T21:31:40.150Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (7f2ea7339e30) [pid = 8097] [serial = 506] [outer = 0] [url = chrome://mozapps/content/handling/appChooser.xhtml]
[task 2022-05-06T21:31:40.150Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (7f2eb9066de0) [pid = 8097] [serial = 508] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:40.151Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (7f2ea7339350) [pid = 8097] [serial = 511] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:40.152Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7f2ea7339520) [pid = 8097] [serial = 513] [outer = 0] [url = chrome://mozapps/content/handling/appChooser.xhtml]
[task 2022-05-06T21:31:40.153Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7f2eb9065bc0) [pid = 8097] [serial = 515] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:40.154Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7f2ea73384d0) [pid = 8097] [serial = 525] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-05-06T21:31:40.155Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Attempting to notify that a new download has started or finished.
[task 2022-05-06T21:31:40.156Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Showing new download notification.
[task 2022-05-06T21:31:40.156Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: _updateStateInner, target exists?  /tmp/Temp-6a7c55d5-3497-442e-b4ee-302a1e54c897/testsavedir2177574097/gook2.exe true
[task 2022-05-06T21:31:40.157Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097, Compositor] WARNING: IPC Connection Error: [Parent][PCompositorManagerParent] RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1903
[task 2022-05-06T21:31:40.158Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.165Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.171Z] 21:31:40     INFO - GECKO(8097) | [Child 13654: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f74a9669400 == 0 [pid = 13654] [id = 0] [url = about:blank]
[task 2022-05-06T21:31:40.183Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.191Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.199Z] 21:31:40     INFO - GECKO(8097) | [Child 13654: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f74bf495bc0) [pid = 13654] [serial = 1] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:40.200Z] 21:31:40     INFO - GECKO(8097) | [Child 13654: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f74a9669800) [pid = 13654] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:40.225Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-05-06T21:31:40.229Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2022-05-06T21:31:40.237Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.241Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.241Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.251Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:40.256Z] 21:31:40     INFO - GECKO(8097) | [Child 13654, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4571
[task 2022-05-06T21:31:40.294Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED): file /builds/worker/checkouts/gecko/netwerk/ipc/DocumentLoadListener.cpp:258
[task 2022-05-06T21:31:40.307Z] 21:31:40     INFO - GECKO(8097) | [Parent 8097, Main Thread] WARNING: The dialog should nullify the dialog progress listener: file /builds/worker/checkouts/gecko/uriloader/exthandler/nsExternalHelperAppService.cpp:2327
[task 2022-05-06T21:31:40.310Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: A new download data item was added
[task 2022-05-06T21:31:40.312Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Adding a new DownloadsViewItem to the downloads list. aNewest = true
[task 2022-05-06T21:31:40.315Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: The downloads item count has changed - we are tracking 3 downloads in total.
[task 2022-05-06T21:31:40.316Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Setting the panel's hasdownloads attribute to true.
[task 2022-05-06T21:31:40.345Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Attempting to notify that a new download has started or finished.
[task 2022-05-06T21:31:40.347Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Opening the downloads panel.
[task 2022-05-06T21:31:40.348Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Panel is already showing - focusing instead.
[task 2022-05-06T21:31:40.374Z] 21:31:40     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-05-06T21:31:40.376Z] 21:31:40     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_save_filenames.js | open link21 gook3 was downloaded with the correct name when opened as a url - Got "gook2.exe", expected "gook3"
[task 2022-05-06T21:31:40.376Z] 21:31:40     INFO - Stack trace:
[task 2022-05-06T21:31:40.376Z] 21:31:40     INFO - chrome://mochikit/content/browser-test.js:test_is:1422
[task 2022-05-06T21:31:40.376Z] 21:31:40     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_save_filenames.js:saveas_files:456
[task 2022-05-06T21:31:40.645Z] 21:31:40     INFO - GECKO(8097) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpz3obl6z6.mozrunner/runtests_leaks_tab_pid13696.log
[task 2022-05-06T21:31:40.647Z] 21:31:40     INFO - GECKO(8097) | [13696, 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-05-06T21:31:40.694Z] 21:31:40     INFO - GECKO(8097) | [Child 13696, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:693
[task 2022-05-06T21:31:40.815Z] 21:31:40     INFO - GECKO(8097) | [Child 13696: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f5544b83400 == 1 [pid = 13696] [id = 0]
[task 2022-05-06T21:31:40.817Z] 21:31:40     INFO - GECKO(8097) | [Child 13696: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7f555a995bc0) [pid = 13696] [serial = 1] [outer = 0]
[task 2022-05-06T21:31:40.830Z] 21:31:40     INFO - GECKO(8097) | [Child 13696: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7f5544b83c00) [pid = 13696] [serial = 2] [outer = 7f555a995bc0]
[task 2022-05-06T21:31:40.927Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Attempting to notify that a new download has started or finished.
[task 2022-05-06T21:31:40.930Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: Showing new download notification.
[task 2022-05-06T21:31:40.935Z] 21:31:40     INFO - GECKO(8097) | console.log: Downloads: _updateStateInner, target exists?  /tmp/Temp-6a7c55d5-3497-442e-b4ee-302a1e54c897/testsavedir2177574097/gook3 true
[task 2022-05-06T21:31:41.416Z] 21:31:41     INFO - GECKO(8097) | [Parent 8097, Compositor] WARNING: IPC Connection Error: [Parent][PCompositorManagerParent] RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost: file /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1903
[task 2022-05-06T21:31:41.422Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.476Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.507Z] 21:31:41     INFO - GECKO(8097) | [Child 13658: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fad4d442400 == 0 [pid = 13658] [id = 0] [url = about:blank]
[task 2022-05-06T21:31:41.547Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.570Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.578Z] 21:31:41     INFO - GECKO(8097) | [Child 13658: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fad63295bc0) [pid = 13658] [serial = 1] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:41.583Z] 21:31:41     INFO - GECKO(8097) | [Child 13696: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7f5544b86c00) [pid = 13696] [serial = 3] [outer = 7f555a995bc0]
[task 2022-05-06T21:31:41.592Z] 21:31:41     INFO - GECKO(8097) | [Child 13658: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fad4d442800) [pid = 13658] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-05-06T21:31:41.594Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-05-06T21:31:41.598Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2022-05-06T21:31:41.602Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.614Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.614Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.619Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:510
[task 2022-05-06T21:31:41.628Z] 21:31:41     INFO - GECKO(8097) | [Child 13658, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4571
[task 2022-05-06T21:31:41.964Z] 21:31:41     INFO - GECKO(8097) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpz3obl6z6.mozrunner/runtests_leaks_tab_pid13725.log
[task 2022-05-06T21:31:41.965Z] 21:31:41     INFO - GECKO(8097) | [13725, 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-05-06T21:31:41.975Z] 21:31:41     INFO - GECKO(8097) | [Parent 8097, Main Thread] WARNING: 'mIndex >= Count()', file /builds/worker/checkouts/gecko/xpcom/ds/nsStringEnumerator.cpp:202
[task 2022-05-06T21:31:41.982Z] 21:31:41     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_save_filenames.js | i22 script1.js was saved with the correct name save page as - 
```