1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

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

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)