diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-10 18:00:01 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-11 11:36:07 +0000 |
commit | 88dcdf681f9ffb9b40e25e3f2e4bc4039917c28c (patch) | |
tree | 74227e8025507d6a049b72eabb74b77a7a067fad /Userland/Applications | |
parent | 561f9f36f78e2e0ef68bd319daa5ce666f87f140 (diff) | |
download | serenity-88dcdf681f9ffb9b40e25e3f2e4bc4039917c28c.zip |
Browser+WebContent+WebDriver: Move Get Page Source to WebContent
Diffstat (limited to 'Userland/Applications')
5 files changed, 0 insertions, 19 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index dcb77be9e8..05b1ba5ee4 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -607,10 +607,6 @@ void BrowserWindow::create_new_tab(URL url, bool activate) return active_tab().view().take_screenshot(); }; - new_tab.webdriver_endpoints().on_serialize_source = [this]() { - return active_tab().view().serialize_source(); - }; - new_tab.webdriver_endpoints().on_execute_script = [this](String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async) { return active_tab().view().webdriver_execute_script(body, json_arguments, timeout, async); }; diff --git a/Userland/Applications/Browser/WebDriverConnection.cpp b/Userland/Applications/Browser/WebDriverConnection.cpp index d0c26bc3c1..5e0faaf9d1 100644 --- a/Userland/Applications/Browser/WebDriverConnection.cpp +++ b/Userland/Applications/Browser/WebDriverConnection.cpp @@ -58,18 +58,6 @@ void WebDriverConnection::forward() browser_window->active_tab().go_forward(); } -Messages::WebDriverSessionClient::SerializeSourceResponse WebDriverConnection::serialize_source() -{ - dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: serialize_source"); - if (auto browser_window = m_browser_window.strong_ref()) { - auto& tab = browser_window->active_tab(); - if (tab.webdriver_endpoints().on_serialize_source) - return { tab.webdriver_endpoints().on_serialize_source() }; - } - - return { {} }; -} - Messages::WebDriverSessionClient::ExecuteScriptResponse WebDriverConnection::execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async) { dbgln("WebDriverConnection: execute_script"); diff --git a/Userland/Applications/Browser/WebDriverConnection.h b/Userland/Applications/Browser/WebDriverConnection.h index 7dbd966a39..9247eac580 100644 --- a/Userland/Applications/Browser/WebDriverConnection.h +++ b/Userland/Applications/Browser/WebDriverConnection.h @@ -42,7 +42,6 @@ public: virtual void refresh() override; virtual void back() override; virtual void forward() override; - virtual Messages::WebDriverSessionClient::SerializeSourceResponse serialize_source() override; virtual Messages::WebDriverSessionClient::ExecuteScriptResponse execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async) override; virtual Messages::WebDriverSessionClient::GetAllCookiesResponse get_all_cookies() override; virtual Messages::WebDriverSessionClient::GetNamedCookieResponse get_named_cookie(String const& name) override; diff --git a/Userland/Applications/Browser/WebDriverEndpoints.h b/Userland/Applications/Browser/WebDriverEndpoints.h index e59a1d2435..2f5c03ea26 100644 --- a/Userland/Applications/Browser/WebDriverEndpoints.h +++ b/Userland/Applications/Browser/WebDriverEndpoints.h @@ -23,7 +23,6 @@ public: WebDriverEndpoints() = default; ~WebDriverEndpoints() = default; - Function<String()> on_serialize_source; Function<Messages::WebContentServer::WebdriverExecuteScriptResponse(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async)> on_execute_script; }; diff --git a/Userland/Applications/Browser/WebDriverSessionClient.ipc b/Userland/Applications/Browser/WebDriverSessionClient.ipc index 759c4ba81f..1b38fa717d 100644 --- a/Userland/Applications/Browser/WebDriverSessionClient.ipc +++ b/Userland/Applications/Browser/WebDriverSessionClient.ipc @@ -18,7 +18,6 @@ endpoint WebDriverSessionClient { refresh() =| back() =| forward() =| - serialize_source() => (String source) execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result) get_all_cookies() => (Vector<Web::Cookie::Cookie> cookies) get_named_cookie(String name) => (Optional<Web::Cookie::Cookie> cookie) |