mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
LibWeb: Update WebDriverConnection::close_window() to use navigables
This commit is contained in:
parent
df5db1631b
commit
d17b1d6b1f
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ Messages::WebDriverClient::CloseWindowResponse WebDriverConnection::close_window
|
||||||
TRY(handle_any_user_prompts());
|
TRY(handle_any_user_prompts());
|
||||||
|
|
||||||
// 3. Close the current top-level browsing context.
|
// 3. Close the current top-level browsing context.
|
||||||
m_page_client.page().top_level_browsing_context().close();
|
m_page_client.page().top_level_browsing_context().active_document()->navigable()->traversable_navigable()->close_top_level_traversable();
|
||||||
|
|
||||||
return JsonValue {};
|
return JsonValue {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue