mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
WebContent: Add IPC call to get window handle from WebContent client
This commit is contained in:
parent
d87a207ca9
commit
48e0789a17
Notes:
sideshowbarker
2024-07-17 05:18:58 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 48e0789a17
Pull-request: https://github.com/SerenityOS/serenity/pull/17855
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue