mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-27 06:10:26 +00: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 |
||
|---|---|---|
| .. | ||
| EventLoop.cpp | ||
| EventLoop.h | ||
| Task.cpp | ||
| Task.h | ||
| TaskQueue.cpp | ||
| TaskQueue.h | ||