Bug: Perma TEST-UNEXPECTED-FAIL | browser/base/content/test/outOfProcess/browser_promisefocus.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:18:51+00:00
Resolved: 2021-09-06 06:36:31+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=C_PT9gEnSqO4rSiFGvW_qQ.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=350445691&repo=try&lineNumber=2743)

```
[task 2021-09-03T13:02:23.557Z] 13:02:23     INFO - TEST-START | browser/base/content/test/outOfProcess/browser_promisefocus.js
[task 2021-09-03T13:02:24.266Z] 13:02:24     INFO - GECKO(1895) | must wait for focus
[task 2021-09-03T13:02:24.332Z] 13:02:24     INFO - GECKO(1895) | must wait for focus
[task 2021-09-03T13:02:24.709Z] 13:02:24     INFO - GECKO(1895) | must wait for focus
[task 2021-09-03T13:02:25.445Z] 13:02:25     INFO - GECKO(1895) | must wait for focus in content
[task 2021-09-03T13:02:25.482Z] 13:02:25     INFO - TEST-INFO | started process screentopng
[task 2021-09-03T13:02:25.877Z] 13:02:25     INFO - TEST-INFO | screentopng: exit 0
[task 2021-09-03T13:02:25.878Z] 13:02:25     INFO - Buffered messages logged at 13:02:23
[task 2021-09-03T13:02:25.879Z] 13:02:25     INFO - Entering test bound test_window_focus
[task 2021-09-03T13:02:25.879Z] 13:02:25     INFO - Buffered messages logged at 13:02:24
[task 2021-09-03T13:02:25.880Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus after open second window - 
[task 2021-09-03T13:02:25.881Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus after open second window - 
[task 2021-09-03T13:02:25.882Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | activeWindow after open second window - 
[task 2021-09-03T13:02:25.885Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | focusedWindow after open second window - 
[task 2021-09-03T13:02:25.885Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus after promiseFocus on window - 
[task 2021-09-03T13:02:25.885Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus after promiseFocus on window - 
[task 2021-09-03T13:02:25.885Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | activeWindow after promiseFocus on window - 
[task 2021-09-03T13:02:25.886Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | focusedWindow after promiseFocus on window - 
[task 2021-09-03T13:02:25.886Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus after promiseFocus on second window - 
[task 2021-09-03T13:02:25.888Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus after promiseFocus on second window - 
[task 2021-09-03T13:02:25.888Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | activeWindow after promiseFocus on second window - 
[task 2021-09-03T13:02:25.889Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | focusedWindow after promiseFocus on second window - 
[task 2021-09-03T13:02:25.890Z] 13:02:25     INFO - Leaving test bound test_window_focus
[task 2021-09-03T13:02:25.890Z] 13:02:25     INFO - Entering test bound test_tab_focus
[task 2021-09-03T13:02:25.892Z] 13:02:25     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,<input>" line: 0}]
[task 2021-09-03T13:02:25.895Z] 13:02:25     INFO - Buffered messages logged at 13:02:25
[task 2021-09-03T13:02:25.896Z] 13:02:25     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,<input>" line: 0}]
[task 2021-09-03T13:02:25.896Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | Browser is focused after promiseFocus - 
[task 2021-09-03T13:02:25.897Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | activeBrowsingContext in child process in hidden tab - null == null - 
[task 2021-09-03T13:02:25.898Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | focusedWindow in child process in hidden tab - null == null - 
[task 2021-09-03T13:02:25.900Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | hasFocus in child process in hidden tab - true == true - 
[task 2021-09-03T13:02:25.901Z] 13:02:25     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | activeBrowsingContext in child process in visible tab - {} == {} - 
[task 2021-09-03T13:02:25.902Z] 13:02:25     INFO - Buffered messages finished
[task 2021-09-03T13:02:25.902Z] 13:02:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/outOfProcess/browser_promisefocus.js | Uncaught exception - TimeoutError: Message handler threw uncatchable exception
[task 2021-09-03T13:02:25.903Z] 13:02:25     INFO - Leaving test bound test_tab_focus
[task 2021-09-03T13:02:25.904Z] 13:02:25     INFO - Entering test bound test_subframes_focus
[task 2021-09-03T13:02:25.907Z] 13:02:25     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: "https://example.com/browser/browser/base/content/test/outOfProcess/file_base.html" line: 0}]
[task 2021-09-03T13:02:26.118Z] 13:02:26     INFO - Console message: [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "https://www.mozilla.org/browser/browser/base/content/test/outOfProcess/file_innerframe.html" line: 0}]
[task 2021-09-03T13:02:26.144Z] 13:02:26     INFO - Console message: [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "https://test1.example.org/browser/browser/base/content/test/outOfProcess/file_innerframe.html" line: 0}]
[task 2021-09-03T13:02:26.354Z] 13:02:26     INFO - within child frame 7 step 0 blur subframe true start
[task 2021-09-03T13:02:26.355Z] 13:02:26     INFO - GECKO(1895) | must wait for focus in content
[task 2021-09-03T13:02:26.360Z] 13:02:26     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | within child frame 7 step 0 blur subframe true  focusedContentBrowsingContext:: 12884901895,12884901895 - 
[task 2021-09-03T13:02:26.385Z] 13:02:26     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | within child frame 7 step 0 blur subframe true activeBrowsingContext - {} == {} - 
[task 2021-09-03T13:02:26.386Z] 13:02:26     INFO - TEST-PASS | browser/base/content/test/outOfProcess/browser_promisefocus.js | within child frame 7 step 0 blur subframe true hasFocus: 12884901895 - true == true - 
[task 2021-09-03T13:02:26.387Z] 13:02:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-03T13:02:26.388Z] 13:02:26     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/outOfProcess/browser_promisefocus.js | Uncaught exception - TimeoutError: Message handler threw uncatchable exception
[task 2021-09-03T13:02:26.388Z] 13:02:26     INFO - Leaving test bound test_subframes_focus
[task 2021-09-03T13:02:26.397Z] 13:02:26     INFO - GECKO(1895) | MEMORY STAT | vsize 20975246MB | residentFast 1227MB
[task 2021-09-03T13:02:26.398Z] 13:02:26     INFO - TEST-OK | browser/base/content/test/outOfProcess/browser_promisefocus.js | took 2841ms
[task 2021-09-03T13:02:26.400Z] 13:02:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-03T13:02:26.401Z] 13:02:26     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/outOfProcess/browser_promisefocus.js | Found an unexpected tab at the end of test run: https://example.com/browser/browser/base/content/test/outOfProcess/file_base.html - 
[task 2021-09-03T13:02:26.450Z] 13:02:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-03T13:02:26.451Z] 13:02:26     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/outOfProcess/browser_promisefocus.js | Found an unexpected tab at the end of test run: data:text/html,<input> - 
[task 2021-09-03T13:02:26.474Z] 13:02:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-03T13:02:26.474Z] 13:02:26     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/outOfProcess/browser_promisefocus.js | Found an unexpected tab at the end of test run: data:text/html,<input> - 
[task 2021-09-03T13:02:26.556Z] 13:02:26     INFO - checking window state
[task 2021-09-03T13:02:28.684Z] 13:02:28     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 2096
[task 2021-09-03T13:02:28.726Z] 13:02:28     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 2081
[task 2021-09-03T13:02:28.764Z] 13:02:28     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 1978
[task 2021-09-03T13:02:28.778Z] 13:02:28     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 2129
[task 2021-09-03T13:02:28.790Z] 13:02:28     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 1961
[task 2021-09-03T13:02:28.797Z] 13:02:28     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 2041
[task 2021-09-03T13:02:29.409Z] 13:02:29     INFO - GECKO(1895) | Completed ShutdownLeaks collections in process 1895
[task 2021-09-03T13:02:29.412Z] 13:02:29     INFO - TEST-START | Shutdown
[task 2021-09-03T13:02:29.416Z] 13:02:29     INFO - Browser Chrome Test Summary
[task 2021-09-03T13:02:29.416Z] 13:02:29     INFO - Passed:  55
[task 2021-09-03T13:02:29.420Z] 13:02:29     INFO - Failed:  5
[task 2021-09-03T13:02:29.420Z] 13:02:29     INFO - Todo:    0
[task 2021-09-03T13:02:29.420Z] 13:02:29     INFO - Mode:    e10s
[task 2021-09-03T13:02:29.421Z] 13:02:29     INFO - *** End BrowserChrome Test Results ***
```