LibWeb: Update Window::focus() to use navigables

This commit is contained in:
Aliaksandr Kalenik 2023-09-07 12:58:48 +02:00 committed by Andreas Kling
parent e54071ce89
commit c95215f829
Notes: sideshowbarker 2024-07-16 20:51:53 +09:00

View file

@ -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)