Closed Bug 1638499 Opened 5 years ago Closed 5 years ago

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)

defect

Tracking

()

RESOLVED FIXED
Firefox 78
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

Blocks: 1618386
Blocks: 1568570
Whiteboard: [retriggered]

Interestingly I found this test no longer fails on macOS debug: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b5bb0a2807d1738dae1da6e3d5fabbc8e887c38a

Set release status flags based on info from the regressing bug 1276537

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: nobody → xidorn+moz
Status: NEW → ASSIGNED

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...

Flags: needinfo?(xidorn+moz)
Pushed by mozilla@upsuper.org: https://hg.mozilla.org/integration/autoland/rev/b818588404a5 Disable browser_fullscreen_window_focus.js on macOS. r=pbz
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: