summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent/ConnectionFromClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/WebContent/ConnectionFromClient.cpp')
-rw-r--r--Userland/Services/WebContent/ConnectionFromClient.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp
index d75fbb7f31..f4ab796d12 100644
--- a/Userland/Services/WebContent/ConnectionFromClient.cpp
+++ b/Userland/Services/WebContent/ConnectionFromClient.cpp
@@ -69,6 +69,15 @@ Web::Page const& ConnectionFromClient::page() const
return m_page_host->page();
}
+void ConnectionFromClient::connect_to_webdriver(String const& webdriver_ipc_path)
+{
+ // FIXME: Propogate this error back to the browser.
+ if (auto result = m_page_host->connect_to_webdriver(webdriver_ipc_path); result.is_error())
+ dbgln("Unable to connect to the WebDriver process: {}", result.error());
+ else
+ set_is_webdriver_active(true);
+}
+
void ConnectionFromClient::update_system_theme(Core::AnonymousBuffer const& theme_buffer)
{
Gfx::set_system_theme(theme_buffer);