Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Downloaded file should also match somefile.oga - Got "somefile.png", expected "somefile.oga"
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-12-14 01:41:26+00:00
Resolved: 2020-12-21 11:48:17+00:00

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

---
```
[task 2020-12-14T01:14:12.268Z] 01:14:12     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_extension_correction.js
[task 2020-12-14T01:14:13.599Z] 01:14:13     INFO - GECKO(3997) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-14T01:14:14.927Z] 01:14:14     INFO - GECKO(3997) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-14T01:14:15.132Z] 01:14:15     INFO - TEST-INFO | started process screentopng
[task 2020-12-14T01:14:15.653Z] 01:14:15     INFO - TEST-INFO | screentopng: exit 0
[task 2020-12-14T01:14:15.653Z] 01:14:15     INFO - Buffered messages logged at 01:14:12
[task 2020-12-14T01:14:15.653Z] 01:14:15     INFO - Entering test bound setup
[task 2020-12-14T01:14:15.655Z] 01:14:15     INFO - Leaving test bound setup
[task 2020-12-14T01:14:15.655Z] 01:14:15     INFO - Entering test bound test_enforce_useful_extension
[task 2020-12-14T01:14:15.656Z] 01:14:15     INFO - Checking image/png
[task 2020-12-14T01:14:15.656Z] 01:14:15     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html," line: 0}]
[task 2020-12-14T01:14:15.656Z] 01:14:15     INFO - Buffered messages logged at 01:14:13
[task 2020-12-14T01:14:15.656Z] 01:14:15     INFO - Waiting for dialog.
[task 2020-12-14T01:14:15.656Z] 01:14:15     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | image/png should get an extension - 
[task 2020-12-14T01:14:15.656Z] 01:14:15     INFO - Console message: [JavaScript Error: "TypeError: can't access property "postShowCallback", this.dialog is null" {file: "resource://gre/modules/HelperAppDlg.jsm" line: 615}]
[task 2020-12-14T01:14:15.657Z] 01:14:15     INFO - initDialog/<@resource://gre/modules/HelperAppDlg.jsm:615:7
[task 2020-12-14T01:14:15.657Z] 01:14:15     INFO - 
[task 2020-12-14T01:14:15.658Z] 01:14:15     INFO - Download changed!
[task 2020-12-14T01:14:15.658Z] 01:14:15     INFO - Download succeeded or errored
[task 2020-12-14T01:14:15.659Z] 01:14:15     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Downloaded file should also match somefile.png - 
[task 2020-12-14T01:14:15.659Z] 01:14:15     INFO - Checking audio/ogg
[task 2020-12-14T01:14:15.659Z] 01:14:15     INFO - Buffered messages logged at 01:14:14
[task 2020-12-14T01:14:15.660Z] 01:14:15     INFO - Console message: [JavaScript Error: "Unix error 2 during operation setPermissions on file /builds/worker/somefile.png (No such file or directory)" {file: "resource://gre/modules/DownloadIntegration.jsm" line: 683}]
[task 2020-12-14T01:14:15.660Z] 01:14:15     INFO - downloadDone@resource://gre/modules/DownloadIntegration.jsm:683:12
[task 2020-12-14T01:14:15.660Z] 01:14:15     INFO - 
[task 2020-12-14T01:14:15.663Z] 01:14:15     INFO - Waiting for dialog.
[task 2020-12-14T01:14:15.663Z] 01:14:15     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | audio/ogg should get an extension - 
[task 2020-12-14T01:14:15.664Z] 01:14:15     INFO - Buffered messages logged at 01:14:15
[task 2020-12-14T01:14:15.665Z] 01:14:15     INFO - Console message: [JavaScript Error: "TypeError: can't access property "postShowCallback", this.dialog is null" {file: "resource://gre/modules/HelperAppDlg.jsm" line: 615}]
[task 2020-12-14T01:14:15.666Z] 01:14:15     INFO - initDialog/<@resource://gre/modules/HelperAppDlg.jsm:615:7
[task 2020-12-14T01:14:15.666Z] 01:14:15     INFO - 
[task 2020-12-14T01:14:15.666Z] 01:14:15     INFO - Download changed!
[task 2020-12-14T01:14:15.666Z] 01:14:15     INFO - Download succeeded or errored
[task 2020-12-14T01:14:15.667Z] 01:14:15     INFO - Buffered messages finished
[task 2020-12-14T01:14:15.667Z] 01:14:15     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Downloaded file should also match somefile.oga - Got "somefile.png", expected "somefile.oga"
[task 2020-12-14T01:14:15.667Z] 01:14:15     INFO - Stack trace:
[task 2020-12-14T01:14:15.668Z] 01:14:15     INFO - chrome://mochikit/content/browser-test.js:test_is:1332
[task 2020-12-14T01:14:15.668Z] 01:14:15     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_extension_correction.js:checkDownloadWithExtensionState:84
[task 2020-12-14T01:14:15.668Z] 01:14:15     INFO - Checking video/webm
[task 2020-12-14T01:14:15.669Z] 01:14:15     INFO - Waiting for dialog.```