1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Browser+WebContent+WebDriver: Move Delete Cookie to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 11:21:00 -05:00 committed by Linus Groh
parent d202999853
commit b7f21bb92e
7 changed files with 43 additions and 18 deletions

View file

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