mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
Browser+WebContent+WebDriver: Move Delete Cookie to WebContent
This commit is contained in:
parent
d202999853
commit
b7f21bb92e
7 changed files with 43 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue