mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +00:00
LibWeb: Update WebDriverConnection::close_session() to use navigables
This commit is contained in:
parent
bf785fee34
commit
df5db1631b
1 changed files with 1 additions and 2 deletions
|
@ -346,8 +346,7 @@ void WebDriverConnection::close_session()
|
|||
set_is_webdriver_active(false);
|
||||
|
||||
// 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().close();
|
||||
m_page_client.page().top_level_browsing_context().active_document()->navigable()->traversable_navigable()->close_top_level_traversable();
|
||||
}
|
||||
|
||||
void WebDriverConnection::set_page_load_strategy(Web::WebDriver::PageLoadStrategy const& page_load_strategy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue