Nothing Special   »   [go: up one dir, main page]

Page MenuHomePhabricator

Bug 1676791 - Part 6: Prevent getAnimations() from returning scroll-linked animations.
ClosedPublic

Authored by boris on Oct 21 2021, 2:04 AM.

Details

Summary

So we don't expose scroll-linked animations to script.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Lint Not Applicable
Unit
Tests Not Applicable
Build Status
Buildable 379385
Build 474222: arc lint + arc unit

Event Timeline

boris retitled this revision from Bug 1676791 - Part 4: Prevent getAnimations(). to Bug 1676791 - Part 4: Prevent getAnimations() from returning scroll-linked animations..
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Fix crash, wpt, and add more reftests

Update documentation of fix some clang-formats

boris added a reviewer: Restricted Project.Oct 27 2021, 6:03 AM
hiro added a subscriber: hiro.

Oh okay, here's a usage of AnimationTimeline::TimelineType.

Is there any test case for this?

This revision is now accepted and ready to land.Oct 27 2021, 6:37 AM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!

boris retitled this revision from Bug 1676791 - Part 4: Prevent getAnimations() from returning scroll-linked animations. to Bug 1676791 - Part 5: Prevent getAnimations() from returning scroll-linked animations..Nov 15 2021, 8:32 PM

Oh okay, here's a usage of AnimationTimeline::TimelineType.

Is there any test case for this?

Now we use IsScrollTimeline() and this is also used in previous patches.

boris retitled this revision from Bug 1676791 - Part 5: Prevent getAnimations() from returning scroll-linked animations. to Bug 1676791 - Part 6: Prevent getAnimations() from returning scroll-linked animations..Nov 18 2021, 12:06 AM

Note that this change also needs a test, if this didn't work as expected, it will probably result crashes, that's we want to avoid.

boris removed a reviewer: Restricted Project.Nov 18 2021, 11:13 PM

Address final comments and rebased

Note that this change also needs a test, if this didn't work as expected, it will probably result crashes, that's we want to avoid.

@boris Did you add any tests for getAnimations()? I'd expect two test cases, one is getAnimations on an element having an CSS animation and a scroll linked animations, one is getAnimations for a document. Thanks!

Note that this change also needs a test, if this didn't work as expected, it will probably result crashes, that's we want to avoid.

@boris Did you add any tests for getAnimations()? I'd expect two test cases, one is getAnimations on an element having an CSS animation and a scroll linked animations, one is getAnimations for a document. Thanks!

Good catch! Doing now

Thanks! A very minor nit about the test, it would be nice to scroll the root scroller and call getComputedStyle to make sure the scroll linked animation should be there.

The test will be move into part 8 because we don't hook CSS animation to scroll-timeline at this moment. I will move the test before landing

Move test and ready to land

boris added a commit: Restricted Diffusion Commit.Feb 18 2022, 7:45 PM