1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibWeb: Update WebDriverConnection::close_session() to use navigables

This commit is contained in:
Aliaksandr Kalenik 2023-09-04 16:26:51 +02:00 committed by Andreas Kling
parent bf785fee34
commit df5db1631b

View file

@ -346,8 +346,7 @@ void WebDriverConnection::close_session()
set_is_webdriver_active(false); set_is_webdriver_active(false);
// 2. An endpoint node must close any top-level browsing contexts associated with the session, without prompting to unload. // 2. An endpoint node must close any top-level browsing contexts associated with the session, without prompting to unload.
if (!m_page_client.page().top_level_browsing_context().has_been_discarded()) m_page_client.page().top_level_browsing_context().active_document()->navigable()->traversable_navigable()->close_top_level_traversable();
m_page_client.page().top_level_browsing_context().close();
} }
void WebDriverConnection::set_page_load_strategy(Web::WebDriver::PageLoadStrategy const& page_load_strategy) void WebDriverConnection::set_page_load_strategy(Web::WebDriver::PageLoadStrategy const& page_load_strategy)