Bug: Intermittent browser/base/content/test/fullscreen/browser_fullscreen_window_open.js | A promise chain failed to handle a rejection: Waiting for document focus - timed out after 50 tries. - stack: (No stack available.)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-05-19 11:45:49+00:00
Resolved: 2020-06-16 17:03:08+00:00

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

---

```
[task 2020-05-19T11:24:08.065Z] 11:24:08     INFO - TEST-START | browser/base/content/test/fullscreen/browser_fullscreen_window_focus.js
[task 2020-05-19T11:24:11.404Z] 11:24:11     INFO - GECKO(1700) | MEMORY STAT | vsize 7803MB | residentFast 361MB | heapAllocated 152MB
[task 2020-05-19T11:24:11.405Z] 11:24:11     INFO - TEST-OK | browser/base/content/test/fullscreen/browser_fullscreen_window_focus.js | took 3353ms
[task 2020-05-19T11:24:11.436Z] 11:24:11     INFO - checking window state
[task 2020-05-19T11:24:11.446Z] 11:24:11     INFO - TEST-START | browser/base/content/test/fullscreen/browser_fullscreen_window_open.js
[task 2020-05-19T11:24:11.446Z] 11:24:11     INFO - GECKO(1700) | [SimpleTest.requestLongerTimeout()] ignoring request, maybe you meant to call the global `requestLongerTimeout` instead?
[task 2020-05-19T11:24:11.447Z] 11:24:11     INFO - GECKO(1700) | JavaScript error: resource://gre/modules/URIFixup.jsm, line 265: NS_ERROR_FAILURE: Should pass a non-null uri
[task 2020-05-19T11:24:18.939Z] 11:24:18     INFO - GECKO(1700) | JavaScript error: , line 0: uncaught exception: Waiting for document focus - timed out after 50 tries.
[task 2020-05-19T11:24:28.328Z] 11:24:28     INFO - GECKO(1700) | 2020-05-19 11:24:28.305 firefox[1700:7708] Persistent UI failed to open file file:///Users/cltbld/Library/Saved%20Application%20State/org.mozilla.nightly.savedState/window_1.data: No such file or directory (2)
[task 2020-05-19T11:24:56.469Z] 11:24:56     INFO - TEST-INFO | started process screencapture
[task 2020-05-19T11:24:56.654Z] 11:24:56     INFO - TEST-INFO | screencapture: exit 0
[task 2020-05-19T11:24:56.654Z] 11:24:56     INFO - Buffered messages logged at 11:24:11
[task 2020-05-19T11:24:56.654Z] 11:24:56     INFO - Entering test bound setup
[task 2020-05-19T11:24:56.654Z] 11:24:56     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE: Should pass a non-null uri" {file: "resource://gre/modules/URIFixup.jsm" line: 265}]
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - getFixupURIInfo@resource://gre/modules/URIFixup.jsm:265:13
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - _getUrlMetaData@resource:///modules/UrlbarValueFormatter.jsm:131:35
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - _ensureFormattedHostVisible/<@resource:///modules/UrlbarValueFormatter.jsm:86:41
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - FrameRequestCallback*_ensureFormattedHostVisible@resource:///modules/UrlbarValueFormatter.jsm:76:17
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - _on_resize/this._resizeThrottleTimeout<@resource:///modules/UrlbarValueFormatter.jsm:466:12
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - setTimeout handler*SimpleTest_setTimeoutShim@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:788:41
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - _on_resize@resource:///modules/UrlbarValueFormatter.jsm:464:47
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - handleEvent@resource:///modules/UrlbarValueFormatter.jsm:448:23
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - EventListener.handleEvent*UrlbarValueFormatter@resource:///modules/UrlbarValueFormatter.jsm:38:17
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - UrlbarInput/<@resource:///modules/UrlbarInput.jsm:156:14
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - get@resource://gre/modules/XPCOMUtils.jsm:129:51
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - formatValue@resource:///modules/UrlbarInput.jsm:230:7
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - _on_focus@resource:///modules/UrlbarInput.jsm:1987:10
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - handleEvent@resource:///modules/UrlbarInput.jsm:372:23
[task 2020-05-19T11:24:56.655Z] 11:24:56     INFO - EventListener.handleEvent*UrlbarInput/this[method]@resource:///modules/UrlbarInput.jsm:134:39
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - UrlbarInput@resource:///modules/UrlbarInput.jsm:192:12
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - @chrome://browser/content/browser.js:330:16
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - get@resource://gre/modules/XPCOMUtils.jsm:129:51
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - _setInitialFocus/<@chrome://browser/content/browser.js:2140:9
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - _callWithURIToLoad@chrome://browser/content/browser.js:2411:15
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - _setInitialFocus@chrome://browser/content/browser.js:2138:10
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - onDOMContentLoaded@chrome://browser/content/browser.js:1820:10
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - EventListener.handleEvent*@chrome://browser/content/browser.xhtml:135:10
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - 
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - Leaving test bound setup
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - Entering test bound test_parentWindowOpen
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - Entering full-screen
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - Calling window.open()
[task 2020-05-19T11:24:56.656Z] 11:24:56     INFO - Buffered messages logged at 11:24:12
[task 2020-05-19T11:24:56.658Z] 11:24:56     INFO - Console message: OpenGL compositor Initialized Succesfully.
[task 2020-05-19T11:24:56.658Z] 11:24:56     INFO - Version: 2.1 INTEL-12.9.22
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - Vendor: Intel Inc.
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - Renderer: Intel Iris OpenGL Engine
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - FBO Texture Target: TEXTURE_2D
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - Console message: OpenGL compositor Initialized Succesfully.
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - Version: 2.1 INTEL-12.9.22
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - Vendor: Intel Inc.
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - Renderer: Intel Iris OpenGL Engine
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - FBO Texture Target: TEXTURE_2D
[task 2020-05-19T11:24:56.659Z] 11:24:56     INFO - TEST-PASS | browser/base/content/test/fullscreen/browser_fullscreen_window_open.js | Should leave full-screen - 
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Leaving test bound test_parentWindowOpen
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Entering test bound test_iframeWindowOpen
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Entering full-screen
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Buffered messages logged at 11:24:18
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Console message: [JavaScript Error: "uncaught exception: Waiting for document focus - timed out after 50 tries."]
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Buffered messages finished
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_window_open.js | Test timed out - 
[task 2020-05-19T11:24:56.660Z] 11:24:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-05-19T11:24:56.662Z] 11:24:56     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_window_open.js | A promise chain failed to handle a rejection: Waiting for document focus - timed out after 50 tries. - stack: (No stack available.)
[task 2020-05-19T11:24:56.662Z] 11:24:56     INFO - Rejection date: Tue May 19 2020 11:24:18 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - Stack trace:
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - chrome://mochikit/content/browser-test.js:nextTest:610
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1190
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1137
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:927
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-05-19T11:24:56.663Z] 11:24:56     INFO - GECKO(1700) | MEMORY STAT | vsize 7645MB | residentFast 337MB | heapAllocated 102MB
[task 2020-05-19T11:24:56.664Z] 11:24:56     INFO - TEST-OK | browser/base/content/test/fullscreen/browser_fullscreen_window_open.js | took 45037ms
task 2020-05-19T11:24:56.664Z] 11:24:56     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-05-19T11:24:56.664Z] 11:24:56     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_window_open.js | Found a tab after previous test timed out: http://example.com/browser/browser/base/content/test/fullscreen/open_and_focus_helper.html - 
[task 2020-05-19T11:24:56.664Z] 11:24:56     INFO - checking window state
[task 2020-05-19T11:24:56.665Z] 11:24:56     INFO - GECKO(1700) | must wait for focus
[task 2020-05-19T11:24:56.665Z] 11:24:56     INFO - GECKO(1700) | Completed ShutdownLeaks collections in process 1700
[task 2020-05-19T11:24:56.665Z] 11:24:56     INFO - TEST-START | Shutdown
```