From c95215f829c0f8145b54b2d590b3470c4dd8b084 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 7 Sep 2023 12:58:48 +0200 Subject: [PATCH] LibWeb: Update `Window::focus()` to use navigables --- Userland/Libraries/LibWeb/HTML/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp index 3e5ea8df0d..0ae4253c80 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.cpp +++ b/Userland/Libraries/LibWeb/HTML/Window.cpp @@ -857,7 +857,7 @@ JS::NonnullGCPtr Window::history() const void Window::focus() { // 1. Let current be this Window object's navigable. - auto* current = browsing_context(); + auto current = navigable(); // 2. If current is null, then return. if (!current)