mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Andreas Kling
parent
f6991a2955
commit
d188aaf288
Notes:
github-actions[bot]
2024-10-31 14:38:43 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/d188aaf2889 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2083 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/shannonbooth
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user