mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
Browser+WebContent+WebDriver: Move Delete All Cookies to WebContent
This commit is contained in:
parent
b7f21bb92e
commit
ff6055e0a3
Notes:
sideshowbarker
2024-07-17 04:34:56 +09:00
Author: https://github.com/trflynn89
Commit: ff6055e0a3
Pull-request: https://github.com/SerenityOS/serenity/pull/16031
Reviewed-by: https://github.com/linusg
9 changed files with 18 additions and 69 deletions
|
@ -990,6 +990,21 @@ Messages::WebDriverClient::DeleteCookieResponse WebDriverConnection::delete_cook
|
|||
return make_success_response({});
|
||||
}
|
||||
|
||||
// 14.5 Delete All Cookies, https://w3c.github.io/webdriver/#dfn-delete-all-cookies
|
||||
Messages::WebDriverClient::DeleteAllCookiesResponse WebDriverConnection::delete_all_cookies()
|
||||
{
|
||||
// 1. If the current browsing context is no longer open, return error with error code no such window.
|
||||
TRY(ensure_open_top_level_browsing_context());
|
||||
|
||||
// FIXME: 2. Handle any user prompts, and return its value if it is an error.
|
||||
|
||||
// 3. Delete cookies, giving no filtering argument.
|
||||
delete_cookies();
|
||||
|
||||
// 4. Return success with data null.
|
||||
return make_success_response({});
|
||||
}
|
||||
|
||||
// 17.1 Take Screenshot, https://w3c.github.io/webdriver/#take-screenshot
|
||||
Messages::WebDriverClient::TakeScreenshotResponse WebDriverConnection::take_screenshot()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue