mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Update Window::focus() to use navigables
This commit is contained in:
committed by
Andreas Kling
parent
e54071ce89
commit
c95215f829
@@ -857,7 +857,7 @@ JS::NonnullGCPtr<History> 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)
|
||||
|
||||
Reference in New Issue
Block a user