mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Update Window::focus()
to use navigables
This commit is contained in:
parent
e54071ce89
commit
c95215f829
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/c95215f829 Pull-request: https://github.com/SerenityOS/serenity/pull/18219
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue