Frequent browser/base/content/test/fullscreen/browser_fullscreen_window_focus.js | A promise chain failed to handle a rejection: Waiting for document focus - timed out after 50 tries. - stack: (No stack available.)
Categories
(Firefox :: General, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox76 | --- | unaffected |
| firefox77 | --- | unaffected |
| firefox78 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: xidorn)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: intermittent-failure, regression, Whiteboard: [retriggered])
Attachments
(1 file)
Filed by: ncsoregi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=302527526&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/F_MicNKUS_K-_WMUb2MJAg/runs/0/artifacts/public/logs/live_backing.log
[task 2020-05-15T23:52:22.738Z] 23:52:22 INFO - FBO Texture Target: TEXTURE_2D
[task 2020-05-15T23:52:22.738Z] 23:52:22 INFO - Entering full-screen
[task 2020-05-15T23:52:22.738Z] 23:52:22 INFO - Buffered messages logged at 23:51:48
[task 2020-05-15T23:52:22.738Z] 23:52:22 INFO - Console message: [JavaScript Error: "uncaught exception: Waiting for document focus - timed out after 50 tries."]
[task 2020-05-15T23:52:22.738Z] 23:52:22 INFO - Buffered messages finished
[task 2020-05-15T23:52:22.739Z] 23:52:22 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_window_focus.js | Test timed out -
[task 2020-05-15T23:52:22.739Z] 23:52:22 INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-05-15T23:52:22.739Z] 23:52:22 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_window_focus.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-15T23:52:22.739Z] 23:52:22 INFO - Rejection date: Fri May 15 2020 23:51:48 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-05-15T23:52:22.739Z] 23:52:22 INFO - Stack trace:
[task 2020-05-15T23:52:22.739Z] 23:52:22 INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-05-15T23:52:22.740Z] 23:52:22 INFO - chrome://mochikit/content/browser-test.js:nextTest:610
[task 2020-05-15T23:52:22.740Z] 23:52:22 INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1190
[task 2020-05-15T23:52:22.740Z] 23:52:22 INFO - setTimeout handler*chrome://mochikit/content/browser-test.js:Tester_execTest:1137
[task 2020-05-15T23:52:22.740Z] 23:52:22 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:927
[task 2020-05-15T23:52:22.740Z] 23:52:22 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-05-15T23:52:22.740Z] 23:52:22 INFO - GECKO(2055) | MEMORY STAT | vsize 7685MB | residentFast 333MB | heapAllocated 113MB
[task 2020-05-15T23:51:37.570Z] 23:51:37 INFO - TEST-START | browser/base/content/test/fullscreen/browser_fullscreen_window_focus.js
Comment 1•5 years ago
|
||
This seems to have started with the changes on bug 1276537.
https://treeherder.mozilla.org/#/jobs?repo=autoland&searchStr=os%2Cx%2C10.14%2Cshippable%2Copt%2Cmochitests%2Ctest-macosx1014-64-shippable%2Fopt-mochitest-browser-chrome-e10s-2%2Cm%28bc2%29&tochange=ea043dfff6a65516a1925efec246491ba4ec5182&fromchange=4266d097e223610178159331d3ffea2fbacf4ec7&test_paths=browser%2Fbase%2Fcontent%2Ftest%2Ffullscreen%2F
xidorn could you, please, take a look?
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
Interestingly I found this test no longer fails on macOS debug: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b5bb0a2807d1738dae1da6e3d5fabbc8e887c38a
| Comment hidden (Intermittent Failures Robot) |
Comment 4•5 years ago
|
||
Set release status flags based on info from the regressing bug 1276537
| Assignee | ||
Comment 5•5 years ago
|
||
So, I believe the reason is that the popup window somehow gets focused by the system or so after it's de-focused. I have several try pushes with different approaches intended to find a way to work around it, but no luck yet.
There was a try push with an setTimeout to delay going full screen which is almost green, and the only failure seems to be because test itself takes too long, not because any other unexpected situation. But I'm not very comfortable with taking an arbitrary wait time for something happening for unknown reason :(
| Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
| Assignee | ||
Comment 7•5 years ago
|
||
I think the best we can do for now is just to disable it on macOS. The intermittent failure here has the same symptom as described in bug 1568570 that the fullscreen request is denied due to loss of focus, so I think it can be covered by that bug (i.e. no need to keep this bug open).
Actually it seems to me that this may no longer be a problem for debug. None of my experiment debugging try pushes (which have the os == 'mac' condition removed) shows failure on this test with debug build. But I don't think there is anything fundamentally changed... It's probably just that changes in bug 1276537 nudged some timing a little bit...
Comment 9•5 years ago
|
||
| bugherder | ||
Updated•5 years ago
|
| Comment hidden (Intermittent Failures Robot) |
Updated•5 years ago
|
Description
•