Closed Bug 2080039 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63413 - Update animation when setting currentTime with null timeline

Categories

(Core :: DOM: Animation, 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 63413 into mozilla-central (this bug is closed when the sync is complete).

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

David Awogbemila <awogbemila@chromium.org> wrote:

Update animation when setting currentTime with null timeline

When an animation has no timeline, setting currentTime leaves the
animation outdated without an active timeline to tick it. This can leave
the animation outdated until a later lifecycle phase (such as Paint)
lazily queries its state, triggering an on-demand timing update and
style invalidation mid-paint.

This CL eagerly updates the timing model and invalidates the effect in
Animation::setCurrentTime when timeline_ is null, matching the behavior
in Animation::setTimeline.

Bug: 567645136
Change-Id: I5b977331b3670a9b9d88e744d6a58049388a5868
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8517898
Commit-Queue: David A \<awogbemila@chromium.org>
Reviewed-by: Kevin Ellis \<kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1714449}

Component: web-platform-tests → DOM: Animation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 41 tests

Status Summary

Firefox

PASS: 1[GitHub] 41[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-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, 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

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/de04dc8c748a https://hg.mozilla.org/integration/autoland/rev/e7192e6c4a6c [wpt PR 63413] - Update animation when setting currentTime with null timeline, 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.