Open Bug 1848423 Opened 9 months ago Updated 8 months ago

Intermittent macOS browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Test timed out

Categories

(Core :: DOM: Core & HTML, defect, P5)

Desktop
macOS
defect

Tracking

()

Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- affected
firefox116 --- unaffected
firefox117 --- wontfix
firefox118 --- wontfix
firefox119 --- affected
firefox120 --- affected

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(4 keywords, Whiteboard: [retriggered][stockwell disabled])

Filed by: ncsoregi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=425710262&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Ml9SXi7gQtC0miUQXfGPOA/runs/0/artifacts/public/logs/live_backing.log


[task 2023-08-11T17:56:07.729Z] 17:56:07     INFO - TEST-PASS | browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Wait for ontop state - check onscreen attribute. - 
[task 2023-08-11T17:56:07.729Z] 17:56:07     INFO - Wait for fullscreen warning timed out again.
[task 2023-08-11T17:56:07.729Z] 17:56:07     INFO - Buffered messages finished
[task 2023-08-11T17:56:07.730Z] 17:56:07     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Test timed out - 
[task 2023-08-11T17:56:07.730Z] 17:56:07     INFO - GECKO(1443) | MEMORY STAT | vsize 8045MB | residentFast 380MB | heapAllocated 135MB
[task 2023-08-11T17:56:07.730Z] 17:56:07     INFO - TEST-OK | browser/base/content/test/fullscreen/browser_fullscreen_warning.js | took 96463ms
[task 2023-08-11T17:56:07.731Z] 17:56:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-08-11T17:56:07.731Z] 17:56:07     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Found a tab after previous test timed out: https://example.com/ - 
[task 2023-08-11T17:56:07.731Z] 17:56:07     INFO - GECKO(1443) | [Child 1452: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10fc54c00 == 1 [pid = 1452] [id = 11]
[task 2023-08-11T17:56:07.732Z] 17:56:07     INFO - GECKO(1443) | [Child 1452: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (10c83e3e0) [pid = 1452] [serial = 27] [outer = 0]
[task 2023-08-11T17:56:07.732Z] 17:56:07     INFO - GECKO(1443) | [Child 1452: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (10fc55400) [pid = 1452] [serial = 28] [outer = 10c83e3e0]
[task 2023-08-11T17:56:07.732Z] 17:56:07     INFO - checking window state
[task 2023-08-11T17:56:07.733Z] 17:56:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-08-11T17:56:07.734Z] 17:56:07     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Uncaught exception received from previously timed out test bound test_fullscreen_reappear - at chrome://mochitests/content/browser/browser/base/content/test/fullscreen/browser_fullscreen_warning.js:8 - ReferenceError: is is not defined
[task 2023-08-11T17:56:07.734Z] 17:56:07     INFO - Stack trace:
[task 2023-08-11T17:56:07.734Z] 17:56:07     INFO - checkWarningState/<@chrome://mochitests/content/browser/browser/base/content/test/fullscreen/browser_fullscreen_warning.js:8:5
[task 2023-08-11T17:56:07.734Z] 17:56:07     INFO - checkWarningState@chrome://mochitests/content/browser/browser/base/content/test/fullscreen/browser_fullscreen_warning.js:7:35
[task 2023-08-11T17:56:07.734Z] 17:56:07     INFO - waitForWarningState@chrome://mochitests/content/browser/browser/base/content/test/fullscreen/browser_fullscreen_warning.js:18:20
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - async*test_fullscreen_reappear/<@chrome://mochitests/content/browser/browser/base/content/test/fullscreen/browser_fullscreen_warning.js:223:11
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - async*test_fullscreen_reappear@chrome://mochitests/content/browser/browser/base/content/test/fullscreen/browser_fullscreen_warning.js:200:26
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-08-11T17:56:07.735Z] 17:56:07     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13

It has a 7 out of 11 failure rate upon retriggers: link

This has actually started with Bug 1833363 - as the occurrence suddenly increases: https://treeherder.mozilla.org/intermittent-failures/bugdetails?startday=2023-08-06&endday=2023-08-11&tree=trunk&failurehash=all&bug=1837474

As this bug has a different regressor as the already existing intermittent Bug 1837474, we would prefer to keep the tracking separate.
Edgar, can you take a look please?
Thank you.

Flags: needinfo?(echen)
Regressed by: 1833363

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → DOM: Core & HTML
Product: Firefox → Core
Whiteboard: [retriggered]
Duplicate of this bug: 1837474
OS: Unspecified → macOS
Hardware: Unspecified → Desktop
Summary: High frequency browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Test timed out → High frequency macOS browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Test timed out
Keywords: leave-open
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/84f8c9d9d355
Temporarily disable browser_fullscreen_warning.js on macOS until a fix is in place. a=test-only

I've temporarily disabled this until a fix is in place due to the fact that it's almost permafailing on macOS. Please re-enable when it's fixed. Thank you.

Whiteboard: [retriggered] → [retriggered][stockwell disabled]

After checking the logs, there are two cases,

  • The fullscreen notification isn't shown after focus switches back to the fullscreen window, leading to a timeout at this location. It's possible that the focus switching takes more than 3 seconds in the CI environment, so the notification has already hidden automatically, and it doesn't reshow again. Increasing the value of full-screen-api.warning.timeout while running the test should help.
  • The fullscreen notification isn't hidden automatically, causing the test to timeout at this location. I checked the screenshot captured by CI, and the fullscreen window isn't the activated one. It seems like focus is moved to another window while running the test, so the fullscreen notification never times out. AFAIK, on Mac, focus might not move back to the previously focused window after closing the currently focused window, I have ran into such issue before. Explicitly focusing the test window should help.
Assignee: nobody → echen
Flags: needinfo?(echen)
See Also: → CVE-2023-5726

(In reply to Edgar Chen [:edgar] from comment #8)

Explicitly focusing the test window should help.

It turns out it still doesn't work, I would need to investigate more.

Summary: High frequency macOS browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Test timed out → Intermittent macOS browser/base/content/test/fullscreen/browser_fullscreen_warning.js | Test timed out

Doesn't work on this recently.

Assignee: echen → nobody
You need to log in before you can comment on or make changes to this bug.