From 0e0936e1cee37b63e54169a3213bfcc45825dd0f Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 7 Sep 2023 00:04:39 +0200 Subject: [PATCH] LibWeb: Update `Window::frame_element()` to use navigables --- Userland/Libraries/LibWeb/HTML/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp index 76edd3381e..47c5682c43 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.cpp +++ b/Userland/Libraries/LibWeb/HTML/Window.cpp @@ -920,14 +920,14 @@ JS::GCPtr Window::parent() const JS::GCPtr Window::frame_element() const { // 1. Let current be this's node navigable. - auto* current = browsing_context(); + auto current = navigable(); // 2. If current is null, then return null. if (!current) return {}; // 3. Let container be current's container. - auto* container = current->container(); + auto container = current->container(); // 4. If container is null, then return null. if (!container)