WebContent: Add IPC call to get window handle from WebContent client

This commit is contained in:
Aliaksandr Kalenik 2023-03-14 07:05:57 +03:00 committed by Tim Flynn
commit 48e0789a17
Notes: sideshowbarker 2024-07-17 05:18:58 +09:00
3 changed files with 8 additions and 0 deletions

View file

@ -61,6 +61,11 @@ Web::Page const& ConnectionFromClient::page() const
return m_page_host->page();
}
Messages::WebContentServer::GetWindowHandleResponse ConnectionFromClient::get_window_handle()
{
return m_page_host->page().top_level_browsing_context().window_handle();
}
void ConnectionFromClient::connect_to_webdriver(DeprecatedString const& webdriver_ipc_path)
{
// FIXME: Propagate this error back to the browser.