Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-04-14 02:41:36+00:00
Resolved: 2024-08-26 12:03:56+00:00

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

---
```
[task 2023-04-14T02:01:48.665Z] 02:01:48     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js | "/builds/worker" == "/builds/worker" - 
[task 2023-04-14T02:01:48.665Z] 02:01:48     INFO - Download changed!
[task 2023-04-14T02:01:48.666Z] 02:01:48     INFO - Download succeeded or errored
[task 2023-04-14T02:01:48.666Z] 02:01:48     INFO - Buffered messages finished
[task 2023-04-14T02:01:48.668Z] 02:01:48     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js | Download should be placed in default download directory: /builds/worker, and it's located in /tmp/1681437705779/file_green.webp - 
[task 2023-04-14T02:01:48.668Z] 02:01:48     INFO - Stack trace:
[task 2023-04-14T02:01:48.668Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:test_ok:1494
[task 2023-04-14T02:01:48.668Z] 02:01:48     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:aDownloadLaunchedWithAppIsSavedInFolder:55
[task 2023-04-14T02:01:48.668Z] 02:01:48     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:aDownloadLaunchedWithAppIsSavedInDownloadsDir:104
[task 2023-04-14T02:01:48.668Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:handleTask:1043
[task 2023-04-14T02:01:48.669Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1115
[task 2023-04-14T02:01:48.669Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1257
[task 2023-04-14T02:01:48.669Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1032
[task 2023-04-14T02:01:48.670Z] 02:01:48     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-14T02:01:48.670Z] 02:01:48     INFO - GECKO(11153) | [Child 14725: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fcc5c22d400 == 1 [pid = 14725] [id = 0]
[task 2023-04-14T02:01:48.671Z] 02:01:48     INFO - GECKO(11153) | [Child 14725: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fcc6147b090) [pid = 14725] [serial = 1] [outer = 0]
[task 2023-04-14T02:01:48.672Z] 02:01:48     INFO - GECKO(11153) | [Child 14725: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fcc5c22e000) [pid = 14725] [serial = 2] [outer = 7fcc6147b090]
[task 2023-04-14T02:01:48.673Z] 02:01:48     INFO - GECKO(11153) | [Child 14725, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-14T02:01:48.674Z] 02:01:48     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-14T02:01:48.680Z] 02:01:48     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js | The file should not have been deleted. - false == true - {"filename":"chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js","name":"aDownloadLaunchedWithAppIsSavedInFolder","sourceId":1098,"lineNumber":63,"columnNumber":10,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js","name":"aDownloadLaunchedWithAppIsSavedInDownloadsDir","sourceId":1098,"lineNumber":104,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":520,"lineNumber":1043,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":520,"lineNumber":1115,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":520,"lineNumber":1257,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":520,"lineNumber":1032,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":548,"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:1032:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1257:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1032:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1115:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1257:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1032:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*handleTask@chrome://mochikit/content/browser-test.js:1043:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1115:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1257:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1032:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*aDownloadLaunchedWithAppIsSavedInDownloadsDir@chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:104:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1043:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1115:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1257:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1032:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"aDownloadLaunchedWithAppIsSavedInFolder@chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:63:10\nasync*aDownloadLaunchedWithAppIsSavedInDownloadsDir@chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:104:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1043:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1115:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1257:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1032:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-04-14T02:01:48.680Z] 02:01:48     INFO - Stack trace:
[task 2023-04-14T02:01:48.680Z] 02:01:48     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:aDownloadLaunchedWithAppIsSavedInFolder:63
[task 2023-04-14T02:01:48.681Z] 02:01:48     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js:aDownloadLaunchedWithAppIsSavedInDownloadsDir:104
[task 2023-04-14T02:01:48.682Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:handleTask:1043
[task 2023-04-14T02:01:48.683Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1115
[task 2023-04-14T02:01:48.683Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1257
[task 2023-04-14T02:01:48.683Z] 02:01:48     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1032
[task 2023-04-14T02:01:48.683Z] 02:01:48     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-14T02:01:48.684Z] 02:01:48     INFO - removing /tmp/1681437705779/file_green.webp
[task 2023-04-14T02:01:48.686Z] 02:01:48     INFO - GECKO(11153) | [Parent 11153, Main Thread] WARNING: WebProgress Ignored: BrowsingContext is null or discarded: file /builds/worker/checkouts/gecko/dom/ipc/BrowserParent.cpp:2997
[task 2023-04-14T02:01:48.687Z] 02:01:48     INFO - Leaving test bound aDownloadLaunchedWithAppIsSavedInDownloadsDir
[task 2023-04-14T02:01:48.688Z] 02:01:48     INFO - Entering test bound aDownloadLaunchedWithAppIsSavedInDesktopDir
[task 2023-04-14T02:01:48.689Z] 02:01:48     INFO - GECKO(11153) | [Parent 11153, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-14T02:01:48.690Z] 02:01:48     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_launched_app_save_directory.js | "/builds/worker" != "" - 
```