summaryrefslogtreecommitdiff
path: root/Userland/Services/WebDriver/Client.cpp
diff options
context:
space:
mode:
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 c3daca6e0d..41802b21ec 100644
--- a/Userland/Services/WebDriver/Client.cpp
+++ b/Userland/Services/WebDriver/Client.cpp
@@ -780,8 +780,7 @@ Web::WebDriver::Response Client::handle_delete_cookie(Vector<StringView> const&
{
dbgln_if(WEBDRIVER_DEBUG, "Handling DELETE /session/<session_id>/cookie/<name>");
auto* session = TRY(find_session_with_id(parameters[0]));
- auto result = TRY(session->delete_cookie(parameters[1]));
- return make_json_value(result);
+ return session->web_content_connection().delete_cookie(parameters[1]);
}
// 14.5 Delete All Cookies, https://w3c.github.io/webdriver/#dfn-delete-all-cookies