Bug: Perma TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Uncaught exception - TimeoutError: Message handler threw uncatchable exception when Gecko 93 merges to Beta on 2021-09-06
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2021-09-03 15:06:38+00:00
Resolved: 2021-09-06 08:00:12+00:00

[Tracking Requested - why for this release]:

[Central-as-beta simulation:](https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel%2Crunnable&revision=27f0b323e184bba97d1c3778a78762b33eb9d3cb&selectedTaskRun=d8d2wa5eRpudx1D_TzDdaA.0) 
[How to run these simulations:](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)

[Failure log:](https://treeherder.mozilla.org/logviewer?job_id=350445736&repo=try&lineNumber=6108)

```
[task 2021-09-03T13:16:02.469Z] 13:16:02     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js
[task 2021-09-03T13:16:03.701Z] 13:16:03     INFO - GECKO(7394) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1115: NS_ERROR_FAILURE: Ignore PDF.js for this download.
[task 2021-09-03T13:16:03.755Z] 13:16:03     INFO - GECKO(7394) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-09-03T13:16:03.778Z] 13:16:03     INFO - GECKO(7394) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-09-03T13:16:04.942Z] 13:16:04     INFO - GECKO(7394) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1115: NS_ERROR_FAILURE: Ignore PDF.js for this download.
[task 2021-09-03T13:16:05.755Z] 13:16:05     INFO - GECKO(7394) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1115: NS_ERROR_FAILURE: Ignore PDF.js for this download.
[task 2021-09-03T13:16:06.487Z] 13:16:06     INFO - GECKO(7394) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1115: NS_ERROR_FAILURE: Ignore PDF.js for this download.
[task 2021-09-03T13:16:07.489Z] 13:16:07     INFO - GECKO(7394) | console.log: Downloads: Closing the downloads panel.
[task 2021-09-03T13:16:07.491Z] 13:16:07     INFO - GECKO(7394) | console.log: Downloads: Downloads panel is not showing - nothing to do.
[task 2021-09-03T13:16:07.885Z] 13:16:07     INFO - GECKO(7394) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1115: NS_ERROR_FAILURE: Ignore PDF.js for this download.
[task 2021-09-03T13:16:08.808Z] 13:16:08     INFO - GECKO(7394) | console.log: Downloads: Closing the downloads panel.
[task 2021-09-03T13:16:08.810Z] 13:16:08     INFO - GECKO(7394) | console.log: Downloads: Downloads panel is not showing - nothing to do.
[task 2021-09-03T13:16:09.097Z] 13:16:09     INFO - GECKO(7394) | JavaScript error: resource://pdf.js/PdfStreamConverter.jsm, line 1115: NS_ERROR_FAILURE: Ignore PDF.js for this download.
[task 2021-09-03T13:16:10.085Z] 13:16:10     INFO - TEST-INFO | started process screentopng
[task 2021-09-03T13:16:10.556Z] 13:16:10     INFO - TEST-INFO | screentopng: exit 0
[task 2021-09-03T13:16:10.557Z] 13:16:10     INFO - Buffered messages logged at 13:16:02
[task 2021-09-03T13:16:10.558Z] 13:16:10     INFO - Entering test bound test_common_initialize
[task 2021-09-03T13:16:10.559Z] 13:16:10     INFO - Leaving test bound test_common_initialize
[task 2021-09-03T13:16:10.560Z] 13:16:10     INFO - Entering test bound setup
[task 2021-09-03T13:16:10.561Z] 13:16:10     INFO - Leaving test bound setup
[task 2021-09-03T13:16:10.564Z] 13:16:10     INFO - Entering test bound simple_navigation
[task 2021-09-03T13:16:10.565Z] 13:16:10     INFO - Buffered messages logged at 13:16:03
[task 2021-09-03T13:16:10.565Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Showing the helper app dialog - 
[task 2021-09-03T13:16:10.565Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | got the right windowContext - 
[task 2021-09-03T13:16:10.565Z] 13:16:10     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Ignore PDF.js for this download." {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1115}]
[task 2021-09-03T13:16:10.565Z] 13:16:10     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1115:15
[task 2021-09-03T13:16:10.566Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.566Z] 13:16:10     INFO - Leaving test bound simple_navigation
[task 2021-09-03T13:16:10.566Z] 13:16:10     INFO - Entering test bound target_blank
[task 2021-09-03T13:16:10.567Z] 13:16:10     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-09-03T13:16:10.567Z] 13:16:10     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-09-03T13:16:10.567Z] 13:16:10     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-09-03T13:16:10.567Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.588Z] 13:16:10     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-09-03T13:16:10.589Z] 13:16:10     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-09-03T13:16:10.589Z] 13:16:10     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-09-03T13:16:10.589Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.589Z] 13:16:10     INFO - Buffered messages logged at 13:16:04
[task 2021-09-03T13:16:10.589Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Showing the helper app dialog - 
[task 2021-09-03T13:16:10.589Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | got the right windowContext - 
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Ignore PDF.js for this download." {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1115}]
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1115:15
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - Buffered messages logged at 13:16:05
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | tab was opened and closed - 
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - Leaving test bound target_blank
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - Entering test bound target_blank_no_opener
[task 2021-09-03T13:16:10.590Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Showing the helper app dialog - 
[task 2021-09-03T13:16:10.591Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | got the right windowContext - 
[task 2021-09-03T13:16:10.591Z] 13:16:10     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Ignore PDF.js for this download." {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1115}]
[task 2021-09-03T13:16:10.591Z] 13:16:10     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1115:15
[task 2021-09-03T13:16:10.591Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.591Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | tab was opened and closed - 
[task 2021-09-03T13:16:10.592Z] 13:16:10     INFO - Leaving test bound target_blank_no_opener
[task 2021-09-03T13:16:10.593Z] 13:16:10     INFO - Entering test bound open_in_new_tab_no_opener
[task 2021-09-03T13:16:10.595Z] 13:16:10     INFO - Buffered messages logged at 13:16:06
[task 2021-09-03T13:16:10.596Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Showing the helper app dialog - 
[task 2021-09-03T13:16:10.599Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | got the right windowContext - 
[task 2021-09-03T13:16:10.602Z] 13:16:10     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Ignore PDF.js for this download." {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1115}]
[task 2021-09-03T13:16:10.602Z] 13:16:10     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1115:15
[task 2021-09-03T13:16:10.602Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.603Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | tab was opened and closed - 
[task 2021-09-03T13:16:10.604Z] 13:16:10     INFO - Leaving test bound open_in_new_tab_no_opener
[task 2021-09-03T13:16:10.605Z] 13:16:10     INFO - Entering test bound new_window
[task 2021-09-03T13:16:10.606Z] 13:16:10     INFO - Buffered messages logged at 13:16:07
[task 2021-09-03T13:16:10.606Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Showing the helper app dialog - 
[task 2021-09-03T13:16:10.609Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | got the right windowContext - 
[task 2021-09-03T13:16:10.610Z] 13:16:10     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Ignore PDF.js for this download." {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1115}]
[task 2021-09-03T13:16:10.610Z] 13:16:10     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1115:15
[task 2021-09-03T13:16:10.611Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.618Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | window was opened and closed - 
[task 2021-09-03T13:16:10.618Z] 13:16:10     INFO - Buffered messages logged at 13:16:08
[task 2021-09-03T13:16:10.619Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Test reseted - 
[task 2021-09-03T13:16:10.620Z] 13:16:10     INFO - Leaving test bound new_window
[task 2021-09-03T13:16:10.620Z] 13:16:10     INFO - Entering test bound new_window_no_opener
[task 2021-09-03T13:16:10.623Z] 13:16:10     INFO - Buffered messages logged at 13:16:09
[task 2021-09-03T13:16:10.623Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Showing the helper app dialog - 
[task 2021-09-03T13:16:10.624Z] 13:16:10     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Ignore PDF.js for this download." {file: "resource://pdf.js/PdfStreamConverter.jsm" line: 1115}]
[task 2021-09-03T13:16:10.624Z] 13:16:10     INFO - getConvertedType@resource://pdf.js/PdfStreamConverter.jsm:1115:15
[task 2021-09-03T13:16:10.624Z] 13:16:10     INFO - 
[task 2021-09-03T13:16:10.625Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | window was opened and closed - 
[task 2021-09-03T13:16:10.626Z] 13:16:10     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Test reseted - 
[task 2021-09-03T13:16:10.627Z] 13:16:10     INFO - Leaving test bound new_window_no_opener
[task 2021-09-03T13:16:10.627Z] 13:16:10     INFO - Entering test bound nested_window_opens
[task 2021-09-03T13:16:10.628Z] 13:16:10     INFO - Buffered messages finished
[task 2021-09-03T13:16:10.629Z] 13:16:10     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Uncaught exception - TimeoutError: Message handler threw uncatchable exception
[task 2021-09-03T13:16:10.629Z] 13:16:10     INFO - Leaving test bound nested_window_opens
[task 2021-09-03T13:16:10.630Z] 13:16:10     INFO - Entering test bound cleanup
[task 2021-09-03T13:16:10.631Z] 13:16:10     INFO - Leaving test bound cleanup
[task 2021-09-03T13:16:10.632Z] 13:16:10     INFO - GECKO(7394) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-09-03T13:16:10.633Z] 13:16:10     INFO - GECKO(7394) | MEMORY STAT heapAllocated not supported in this build configuration.
[task 2021-09-03T13:16:10.634Z] 13:16:10     INFO - GECKO(7394) | MEMORY STAT | vsize 20975280MB | residentFast 1202MB
[task 2021-09-03T13:16:10.635Z] 13:16:10     INFO - TEST-OK | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | took 7688ms
[task 2021-09-03T13:16:10.635Z] 13:16:10     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-03T13:16:10.637Z] 13:16:10     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Found an unexpected tab at the end of test run: https://example.com/browser/uriloader/exthandler/tests/mochitest/download_page.html?newwin - 
[task 2021-09-03T13:16:10.638Z] 13:16:10     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-03T13:16:10.639Z] 13:16:10     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_auto_close_window.js | Found an unexpected tab at the end of test run: https://example.com/browser/uriloader/exthandler/tests/mochitest/download_page.html - 
[task 2021-09-03T13:16:10.640Z] 13:16:10     INFO - checking window state
[task 2021-09-03T13:16:10.640Z] 13:16:10     INFO - TEST-START | uriloader/exthandler/tests/mochitest/browser_download_always_ask_preferred_app.js
```