mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:37:34 +00:00
LibWeb: Update Window::focus()
to use navigables
This commit is contained in:
parent
e54071ce89
commit
c95215f829
1 changed files with 1 additions and 1 deletions
|
@ -857,7 +857,7 @@ JS::NonnullGCPtr<History> Window::history() const
|
||||||
void Window::focus()
|
void Window::focus()
|
||||||
{
|
{
|
||||||
// 1. Let current be this Window object's navigable.
|
// 1. Let current be this Window object's navigable.
|
||||||
auto* current = browsing_context();
|
auto current = navigable();
|
||||||
|
|
||||||
// 2. If current is null, then return.
|
// 2. If current is null, then return.
|
||||||
if (!current)
|
if (!current)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue