Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Uncaught exception - at chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_extension_correction.js:37 - TypeError: content.document.body is n
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-12-29 13:53:53+00:00
Resolved: 2022-04-19 17:01:44+00:00

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

---
```
[task 2021-12-29T13:20:48.861Z] 13:20:48     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_extension_correction.js
<...>
[task 2021-12-29T13:20:50.210Z] 13:20:50     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | url is correct for application/pdf - 
[task 2021-12-29T13:20:50.211Z] 13:20:50     INFO - Console message: [JavaScript Error: "uncaught exception: Object"]
[task 2021-12-29T13:20:50.211Z] 13:20:50     INFO - Checking application/x-gobbledygook
[task 2021-12-29T13:20:50.212Z] 13:20:50     INFO - Buffered messages finished
[task 2021-12-29T13:20:50.216Z] 13:20:50     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Uncaught exception - at chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_extension_correction.js:37 - TypeError: content.document.body is null
[task 2021-12-29T13:20:50.217Z] 13:20:50     INFO - Stack trace:
[task 2021-12-29T13:20:50.217Z] 13:20:50     INFO - @chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_extension_correction.js:37:7
[task 2021-12-29T13:20:50.218Z] 13:20:50     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2021-12-29T13:20:50.219Z] 13:20:50     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1656:15
[task 2021-12-29T13:20:50.220Z] 13:20:50     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2021-12-29T13:20:50.221Z] 13:20:50     INFO - Leaving test bound test_enforce_useful_extension
[task 2021-12-29T13:20:50.222Z] 13:20:50     INFO - Entering test bound test_broken_saved_handlerinfo_and_useless_mimetypes
[task 2021-12-29T13:20:50.222Z] 13:20:50     INFO - GECKO(22413) | Waiting for browser load
[task 2021-12-29T13:20:50.223Z] 13:20:50     INFO - GECKO(22413) | Waiting for browser state change
[task 2021-12-29T13:20:50.224Z] 13:20:50     INFO - GECKO(22413) | Saw state f0001 and status 0
[task 2021-12-29T13:20:50.225Z] 13:20:50     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "data:text/html," line: 0}]
[task 2021-12-29T13:20:50.226Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: A new download data item was added
[task 2021-12-29T13:20:50.226Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Adding a new DownloadsViewItem to the downloads list. aNewest = true
[task 2021-12-29T13:20:50.227Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: The downloads item count has changed - we are tracking 1 downloads in total.
[task 2021-12-29T13:20:50.228Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Setting the panel's hasdownloads attribute to true.
[task 2021-12-29T13:20:50.229Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Attempting to notify that a new download has started or finished.
[task 2021-12-29T13:20:50.230Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Opening the downloads panel.
[task 2021-12-29T13:20:50.231Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Attempting to initialize DownloadsPanel for a window.
[task 2021-12-29T13:20:50.232Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: DownloadsPanel is already initialized.
[task 2021-12-29T13:20:50.233Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Waiting for the downloads panel to appear.
[task 2021-12-29T13:20:50.234Z] 13:20:50     INFO - Download changed!
[task 2021-12-29T13:20:50.235Z] 13:20:50     INFO - Download changed!
[task 2021-12-29T13:20:50.236Z] 13:20:50     INFO - Download changed!
[task 2021-12-29T13:20:50.237Z] 13:20:50     INFO - GECKO(22413) | Saw state c0010 and status 0
[task 2021-12-29T13:20:50.237Z] 13:20:50     INFO - GECKO(22413) | Browser got expected state change https://example.com/browser/uriloader/exthandler/tests/mochitest/file_as.exe?foo=bar
[task 2021-12-29T13:20:50.238Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Opening downloads panel popup.
[task 2021-12-29T13:20:50.239Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Downloads panel has shown.
[task 2021-12-29T13:20:50.240Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Attempting to notify that a new download has started or finished.
[task 2021-12-29T13:20:50.241Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Showing new download notification.
[task 2021-12-29T13:20:50.242Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: _updateStateInner, target exists?  /tmp/Temp-4aafe228-4c2a-4faf-95d8-08fa4421d243/testsavedir881187435/file_as.exe true
[task 2021-12-29T13:20:50.243Z] 13:20:50     INFO - Download changed!
[task 2021-12-29T13:20:50.243Z] 13:20:50     INFO - Download succeeded or errored
[task 2021-12-29T13:20:50.244Z] 13:20:50     INFO - Download changed!
[task 2021-12-29T13:20:50.245Z] 13:20:50     INFO - Download succeeded or errored
[task 2021-12-29T13:20:50.249Z] 13:20:50     INFO - Download changed!
[task 2021-12-29T13:20:50.250Z] 13:20:50     INFO - Download succeeded or errored
[task 2021-12-29T13:20:50.259Z] 13:20:50     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Downloaded file should match file_as.exe - 
[task 2021-12-29T13:20:50.260Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Closing the downloads panel.
[task 2021-12-29T13:20:50.262Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Downloads panel has hidden.
[task 2021-12-29T13:20:50.267Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Downloads panel is now closed.
[task 2021-12-29T13:20:50.268Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: A download data item was removed.
[task 2021-12-29T13:20:50.269Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Removing a DownloadsViewItem from the downloads list.
[task 2021-12-29T13:20:50.270Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: The downloads item count has changed - we are tracking 0 downloads in total.
[task 2021-12-29T13:20:50.271Z] 13:20:50     INFO - GECKO(22413) | console.log: Downloads: Removing the panel's hasdownloads attribute.
[task 2021-12-29T13:20:50.272Z] 13:20:50     INFO - Leaving test bound test_broken_saved_handlerinfo_and_useless_mimetypes
[task 2021-12-29T13:20:50.309Z] 13:20:50     INFO - GECKO(22413) | MEMORY STAT | vsize 11681MB | residentFast 437MB | heapAllocated 327MB
[task 2021-12-29T13:20:50.311Z] 13:20:50     INFO - TEST-OK | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | took 1449ms
[task 2021-12-29T13:20:50.313Z] 13:20:50     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-12-29T13:20:50.314Z] 13:20:50     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_extension_correction.js | Found an unexpected tab at the end of test run: data:text/html, - 
[task 2021-12-29T13:20:50.375Z] 13:20:50     INFO - checking window state
[task 2021-12-29T13:20:50.411Z] 13:20:50     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_first_prompt_not_blocked_without_user_interaction.js


```