Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[vt] Track animations that are pending a DOM callback after being skipped #52358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

Previously calling startViewTransition followed by a second
startViewTransition would correctly skip the first and wait on
its DOM callback to be triggered; however, since skipping a
transition removes it from the active list, starting a VT after an
explicit skip could result in the DOM callback of the first getting
lumped in with the second. This patch adds tracking of skipped
transitions with a pending DOM callback. These are considered
"active" from the perspective of blocking the replacement
transition's capture phase.

Bug: 414396338
Change-Id: Ife841566239e735db46f6006f2391d02d9cf183d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6513530
Commit-Queue: Kevin Ellis <[email protected]>
Reviewed-by: Steve Kobes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1456270}

…pped

Previously calling startViewTransition followed by a second
startViewTransition would correctly skip the first and wait on
its DOM callback to be triggered; however, since skipping a
transition removes it from the active list, starting a VT after an
explicit skip could result in the DOM callback of the first getting
lumped in with the second. This patch adds tracking of skipped
transitions with a pending DOM callback. These are considered
"active" from the perspective of blocking the replacement
transition's capture phase.

Bug: 414396338
Change-Id: Ife841566239e735db46f6006f2391d02d9cf183d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6513530
Commit-Queue: Kevin Ellis <[email protected]>
Reviewed-by: Steve Kobes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1456270}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 8471745 into master May 6, 2025
21 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-a6f78da155 branch May 6, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants