Closed Bug 1826826 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39414 - Dispatch page visibility change async when script execution is possible

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39414 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39414
Details from upstream follow.

Andrey Kosyakov <caseq@chromium.org> wrote:

Dispatch page visibility change async when script execution is possible

  • disable scripts when dispatching PageVisibilityChanged, as a script
    may cause a mutation of the observer set being iterated;
  • defer wake lock release upon page becoming hidden;
  • defer gamepad events dispatch upon page becoming visible.

Bug: 1348019
Change-Id: I031a2465431e440f8521a4b5a6d706fa71623938
Reviewed-on: https://chromium-review.googlesource.com/4403615
WPT-Export-Revision: f37f4a68e7f547a7e58d89383d8de97b4dac5dc3

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL : 1

Chrome

CRASH: 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/74b0fb5cac4d [wpt PR 39414] - Use HeapLinkedHashSet to maintain page visibility observers, a=testonly https://hg.mozilla.org/integration/autoland/rev/acde6272be88 [wpt PR 39414] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.