summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent/ConnectionFromClient.cpp
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-03-14 07:05:57 +0300
committerTim Flynn <trflynn89@pm.me>2023-03-16 13:17:37 -0400
commit48e0789a17ee93873207b304f450330ec0d644f8 (patch)
tree993b76d7cedae270dec4098d304fa8d2b80cf04e /Userland/Services/WebContent/ConnectionFromClient.cpp
parentd87a207ca90725e26a3e410a80280786226fbec3 (diff)
downloadserenity-48e0789a17ee93873207b304f450330ec0d644f8.zip
WebContent: Add IPC call to get window handle from WebContent client
Diffstat (limited to 'Userland/Services/WebContent/ConnectionFromClient.cpp')
-rw-r--r--Userland/Services/WebContent/ConnectionFromClient.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp
index 4e77df6bc8..e321205b7b 100644
--- a/Userland/Services/WebContent/ConnectionFromClient.cpp
+++ b/Userland/Services/WebContent/ConnectionFromClient.cpp
@@ -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.