⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 274824 in webkit


Ignore:
Timestamp:
Mar 22, 2021, 5:18:41 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[Web Animations] nullptr crash in updatePlaybackRate() with no timeline
https://bugs.webkit.org/show_bug.cgi?id=223095

Patch by Ian Gilbert <iang@apple.com> on 2021-03-22
Reviewed by Ryosuke Niwa.

Changed to WebAnimation::remove() to use setTimeline() instead of setTimelineInternal()
to ensure the animation is in the correct play state.

No new tests as this relies on navigating while updating the playback rate and I was unable to make
a reliable test case.

  • animation/WebAnimation.cpp:

(WebCore::WebAnimation::remove): Changed setTimelineInternal() to setTimeline() in order to
ensure the animation has the correct play state.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r274822 r274824  
     12021-03-22  Ian Gilbert  <iang@apple.com>
     2
     3        [Web Animations] nullptr crash in updatePlaybackRate() with no timeline
     4        https://bugs.webkit.org/show_bug.cgi?id=223095
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Changed to WebAnimation::remove() to use setTimeline() instead of setTimelineInternal()
     9        to ensure the animation is in the correct play state.
     10
     11        No new tests as this relies on navigating while updating the playback rate and I was unable to make
     12        a reliable test case.
     13
     14        * animation/WebAnimation.cpp:
     15        (WebCore::WebAnimation::remove): Changed setTimelineInternal() to setTimeline() in order to
     16        ensure the animation has the correct play state.
     17
    1182021-03-22  Patrick Angle  <pangle@apple.com>
    219
  • trunk/Source/WebCore/animation/WebAnimation.cpp

    r274067 r274824  
    121121    auto protectedThis = makeRef(*this);
    122122    setEffectInternal(nullptr);
    123     setTimelineInternal(nullptr);
     123    setTimeline(nullptr);
    124124}
    125125
Note: See TracChangeset for help on using the changeset viewer.