From 1ea90e340ce9014274ebf0ebbdf315701408af60 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 13 Sep 2022 16:06:13 +0200 Subject: LibWeb: Visit all edge-members in WorkerGlobalScope --- Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp index 7a452bbaa5..c1b6d069b0 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp +++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp @@ -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 -- cgit v1.2.3