mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
This list we are iterating over is removed from when there are no more GC references to an ESO. This may be triggered by a GC allocation. Since UniversalGlobalScopeMixin::notify_about_rejected_promises performs GC allocations (by, for example, allocating a GC function), it is not safe to simply iterate over this list. Fix this by taking a strong reference to all registered ESOs by copying them across to a RootVector before iteration. Fixes: #4652
32 KiB
32 KiB