Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Downloaded file should also match X - Got "Y", expected "X"
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2020-12-09 23:40:54+00:00
Resolved: 2021-01-25 06:05:28+00:00

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

---
```
[task 2020-12-09T22:31:19.467Z] 22:31:19     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_extension_correction.js
[task 2020-12-09T22:31:19.906Z] 22:31:19     INFO - GECKO(7784) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-09T22:31:20.080Z] 22:31:20     INFO - GECKO(7784) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-09T22:31:20.244Z] 22:31:20     INFO - GECKO(7784) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-09T22:31:20.403Z] 22:31:20     INFO - GECKO(7784) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-09T22:31:20.568Z] 22:31:20     INFO - GECKO(7784) | JavaScript error: resource://gre/modules/HelperAppDlg.jsm, line 615: TypeError: can't access property "postShowCallback", this.dialog is null
[task 2020-12-09T22:31:21.626Z] 22:31:21     INFO - TEST-INFO | started process screenshot
[task 2020-12-09T22:31:21.737Z] 22:31:21     INFO - TEST-INFO | screenshot: exit 0
[task 2020-12-09T22:31:21.738Z] 22:31:21     INFO - Buffered messages logged at 22:31:19
[task 2020-12-09T22:31:21.738Z] 22:31:21     INFO - Entering test bound setup
[task 2020-12-09T22:31:21.738Z] 22:31:21     INFO - Leaving test bound setup
[task 2020-12-09T22:31:21.738Z] 22:31:21     INFO - Entering test bound test_enforce_useful_extension
[task 2020-12-09T22:31:21.738Z] 22:31:21     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-09T22:31:21.739Z] 22:31:21     INFO - Checking image/png
[task 2020-12-09T22:31:21.739Z] 22:31:21     INFO - Waiting for dialog.
[task 2020-12-09T22:31:21.740Z] 22:31:21     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | image/png should get an extension - 
<...>
[task 2020-12-09T22:31:21.754Z] 22:31:21     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | binary/octet-stream should get an extension - 
[task 2020-12-09T22:31:21.754Z] 22:31:21     INFO - Download changed!
[task 2020-12-09T22:31:21.754Z] 22:31:21     INFO - Download succeeded or errored
[task 2020-12-09T22:31:21.754Z] 22:31:21     INFO - Buffered messages finished
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Downloaded file should also match file_as.exe - Got "somefile.pdf", expected "file_as.exe"
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - Stack trace:
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - chrome://mochikit/content/browser-test.js:test_is:1332
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_extension_correction.js:checkDownloadWithExtensionState:84
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - Leaving test bound test_broken_saved_handlerinfo_and_useless_mimetypes
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - removing C:\Users\task_1607551319\Downloads\somefile.png
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - removing C:\Users\task_1607551319\Downloads\somefile.oga
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - removing C:\Users\task_1607551319\Downloads\somefile.webm
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - removing C:\Users\task_1607551319\Downloads\somefile.doc
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - removing C:\Users\task_1607551319\Downloads\somefile.pdf
[task 2020-12-09T22:31:21.755Z] 22:31:21     INFO - removing C:\Users\task_1607551319\Downloads\file_as.exe
[task 2020-12-09T22:31:21.774Z] 22:31:21     INFO - GECKO(7784) | MEMORY STAT | vsize 2104322MB | vsizeMaxContiguous 69991940MB | residentFast 305MB | heapAllocated 109MB
[task 2020-12-09T22:31:21.774Z] 22:31:21     INFO - TEST-OK | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | took 2305ms
[task 2020-12-09T22:31:21.792Z] 22:31:21     INFO - checking window state
[task 2020-12-09T22:31:21.794Z] 22:31:21     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_first_prompt_not_blocked_without_user_interaction.js```