Closed Bug 2077422 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 63186 - Include all non-throttled controllers in active_controllers

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mustaq Ahmed <mustaq@google.com> wrote:

Include all non-throttled controllers in active_controllers

With EventTimingMatchingHTML disabled, UpdateAnimationsForDocument runs
before active_controllers is filtered by HasScheduledFrameTasks(), so
controllers with finishing animations are added to active_controllers
and any rAF callbacks scheduled in their animation event handlers
execute in Step 14 of the same frame.

When EventTimingMatchingHTML moved UpdateAnimationsForDocument into Step
11, controllers with only active animations had HasScheduledFrameTasks()
== false before Step 6 and were excluded from active_controllers. Step
11 worked around this by using run_for_all_controllers_with_timing, but
Step 14 still used run_for_all_active_controllers_with_timing, deferring
rAF callbacks scheduled during Step 11 to the next frame.

This CL fixes the deferred callback problem when EventTimingMatchingHTML
is enabled, aligning the new behavior with the disabled case and also
with the HTML spec's single docs list across Steps 6-14.

Fixed: 563399635
Change-Id: If402c8aabf024c093eeb6c5bddd100420841aec8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8484104
Reviewed-by: Robert Flack \<flackr@chromium.org>
Commit-Queue: Mustaq Ahmed \<mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1709281}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 8 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 8[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 9[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9557a4a3fae5 https://hg.mozilla.org/integration/autoland/rev/a6a52e510d3d [wpt PR 63186] - Include all non-throttled controllers in active_controllers, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.