1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibWeb+WebContent: Convert WebDriver to choose a navigable AO

Also use the TraversableNavigable's window_handle instead of the
BrowsingContext's.
This commit is contained in:
Andrew Kaster 2024-02-03 09:09:33 -07:00 committed by Andrew Kaster
parent 713698d2ca
commit 3aee787539
Notes: sideshowbarker 2024-07-16 21:42:29 +09:00
4 changed files with 18 additions and 11 deletions

View file

@ -77,12 +77,12 @@ PageClient const& ConnectionFromClient::page(u64 index) const
Messages::WebContentServer::GetWindowHandleResponse ConnectionFromClient::get_window_handle(u64 page_id)
{
return page(page_id).page().top_level_browsing_context().window_handle();
return page(page_id).page().top_level_traversable()->window_handle();
}
void ConnectionFromClient::set_window_handle(u64 page_id, String const& handle)
{
page(page_id).page().top_level_browsing_context().set_window_handle(handle);
page(page_id).page().top_level_traversable()->set_window_handle(handle);
}
void ConnectionFromClient::connect_to_webdriver(u64 page_id, ByteString const& webdriver_ipc_path)