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)