mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
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:
parent
f6991a2955
commit
d188aaf288
Notes:
github-actions[bot]
2024-10-31 14:38:43 +00:00
Author: https://github.com/trflynn89
Commit: d188aaf288
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2083
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/shannonbooth
4 changed files with 23 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue