LibWeb: Protect animation frame callbacks from GC while they execute

Stealing the callbacks from the AnimationFrameCallbackDriver made them
no longer safe from GC. Continue to store them on the class until we
have finished their execution.
This commit is contained in:
Timothy Flynn 2024-10-31 10:05:44 -04:00 committed by Andreas Kling
commit d188aaf288
Notes: github-actions[bot] 2024-10-31 14:38:43 +00:00
4 changed files with 23 additions and 2 deletions

View file

@ -34,6 +34,7 @@ private:
WebIDL::UnsignedLong m_animation_frame_callback_identifier { 0 };
OrderedHashMap<WebIDL::UnsignedLong, Callback> m_callbacks;
OrderedHashMap<WebIDL::UnsignedLong, Callback> m_executing_callbacks;
};
}