LibWeb: Visit all edge-members in WorkerGlobalScope

This commit is contained in:
Hendiadyoin1 2022-09-13 16:06:13 +02:00 committed by Andreas Kling
commit 1ea90e340c
Notes: sideshowbarker 2024-07-17 18:46:30 +09:00

View file

@ -38,7 +38,8 @@ void WorkerGlobalScope::initialize(JS::Realm& realm)
void WorkerGlobalScope::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_location);
visitor.visit(m_location.ptr());
visitor.visit(m_navigator.ptr());
}
// https://html.spec.whatwg.org/multipage/workers.html#importing-scripts-and-libraries