1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

Browser+WebContent+WebDriver: Move Delete All Cookies to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 11:27:08 -05:00 committed by Linus Groh
parent b7f21bb92e
commit ff6055e0a3
9 changed files with 18 additions and 69 deletions

View file

@ -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