summaryrefslogtreecommitdiff
path: root/Userland/Services/WebDriver/Client.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-11-11 11:27:08 -0500
committerLinus Groh <mail@linusgroh.de>2022-11-11 18:02:04 +0000
commitff6055e0a3064b974fa4080ac36f7c0fc40208de (patch)
treed56e06068a082f85b724a9d2b000c18ceb34b63c /Userland/Services/WebDriver/Client.cpp
parentb7f21bb92e9f74251995f02ed145232f6d20fb5e (diff)
downloadserenity-ff6055e0a3064b974fa4080ac36f7c0fc40208de.zip
Browser+WebContent+WebDriver: Move Delete All Cookies to WebContent
Diffstat (limited to 'Userland/Services/WebDriver/Client.cpp')
-rw-r--r--Userland/Services/WebDriver/Client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Services/WebDriver/Client.cpp b/Userland/Services/WebDriver/Client.cpp
index 41802b21ec..b3087b86c9 100644
--- a/Userland/Services/WebDriver/Client.cpp
+++ b/Userland/Services/WebDriver/Client.cpp
@@ -789,8 +789,7 @@ Web::WebDriver::Response Client::handle_delete_all_cookies(Vector<StringView> co
{
dbgln_if(WEBDRIVER_DEBUG, "Handling DELETE /session/<session_id>/cookie");
auto* session = TRY(find_session_with_id(parameters[0]));
- auto result = TRY(session->delete_all_cookies());
- return make_json_value(result);
+ return session->web_content_connection().delete_all_cookies();
}
// 17.1 Take Screenshot, https://w3c.github.io/webdriver/#take-screenshot