From 605d24ef7d4c408c6e8cb86cb9f3e74d67912a2f Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sun, 3 Sep 2023 22:53:36 +0200 Subject: [PATCH] LibWeb: Update WindowProxy::internal_own_property_keys() for navigables --- Userland/Libraries/LibWeb/HTML/WindowProxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp b/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp index 2dd252a47b..99fe3c0133 100644 --- a/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp +++ b/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp @@ -231,8 +231,8 @@ JS::ThrowCompletionOr> WindowProxy::internal_own_pro // 2. Let keys be a new empty List. auto keys = JS::MarkedVector { vm.heap() }; - // 3. Let maxProperties be the number of document-tree child browsing contexts of W. - auto max_properties = m_window->document_tree_child_browsing_context_count(); + // 3. Let maxProperties be W's associated Document's document-tree child navigables's size. + auto max_properties = m_window->associated_document().document_tree_child_navigables().size(); // 4. Let index be 0. // 5. Repeat while index < maxProperties,