From ff6055e0a3064b974fa4080ac36f7c0fc40208de Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 11 Nov 2022 11:27:08 -0500 Subject: Browser+WebContent+WebDriver: Move Delete All Cookies to WebContent --- Userland/Services/WebDriver/Client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Userland/Services/WebDriver/Client.cpp') 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 co { dbgln_if(WEBDRIVER_DEBUG, "Handling DELETE /session//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 -- cgit v1.2.3