From fc6a6d29ec7d11876e05c98433e6b813787b9064 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Thu, 7 Mar 2024 21:39:54 -0700 Subject: [PATCH] LibWeb: Ensure m_is_finished is false after cancelling Animation --- Userland/Libraries/LibWeb/Animations/Animation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/Animations/Animation.cpp b/Userland/Libraries/LibWeb/Animations/Animation.cpp index f6eb198ef5..f2e835e99d 100644 --- a/Userland/Libraries/LibWeb/Animations/Animation.cpp +++ b/Userland/Libraries/LibWeb/Animations/Animation.cpp @@ -430,6 +430,7 @@ void Animation::cancel(ShouldInvalidate should_invalidate) // 4. Let current finished promise be a new promise in the relevant Realm of animation. m_current_finished_promise = WebIDL::create_promise(realm); + m_is_finished = false; // 5. Create an AnimationPlaybackEvent, cancelEvent. // 6. Set cancelEvent’s type attribute to cancel.