mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Stub out Release Actions
This allows WPT to open the browser, and it no longer instantly crashes
This commit is contained in:
parent
3d7e788981
commit
23b378822b
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/stelar7
Commit: 23b378822b
Pull-request: https://github.com/SerenityOS/serenity/pull/20694
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/trflynn89 ✅
7 changed files with 36 additions and 0 deletions
|
@ -1654,6 +1654,26 @@ Messages::WebDriverClient::DeleteAllCookiesResponse WebDriverConnection::delete_
|
|||
return JsonValue {};
|
||||
}
|
||||
|
||||
// 15.8 Release Actions, https://w3c.github.io/webdriver/#release-actions
|
||||
Messages::WebDriverClient::ReleaseActionsResponse WebDriverConnection::release_actions()
|
||||
{
|
||||
// 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. Let input state be the result of get the input state with current session and current top-level browsing context.
|
||||
|
||||
// FIXME: 3. Let actions options be a new actions options with the is element origin steps set to represents a web element, and the get element origin steps set to get a WebElement origin.
|
||||
|
||||
// FIXME: 4. Let undo actions be input state’s input cancel list in reverse order.
|
||||
|
||||
// FIXME: 5. Try to dispatch tick actions with arguments undo actions, 0, current browsing context, and actions options.
|
||||
|
||||
// FIXME: 6. Reset the input state with current session and current top-level browsing context.
|
||||
|
||||
// 7. Return success with data null.
|
||||
return JsonValue {};
|
||||
}
|
||||
|
||||
// 16.1 Dismiss Alert, https://w3c.github.io/webdriver/#dismiss-alert
|
||||
Messages::WebDriverClient::DismissAlertResponse WebDriverConnection::dismiss_alert()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue