mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
WebContent: Ensure the Release Actions endpoint handles user prompts
This also contains an editorial refactor to the Perform Actions endpoint to check for user prompts earlier. See: https://github.com/w3c/webdriver/commit/78d3c9b
This commit is contained in:
committed by
Sam Atkins
parent
0a46b5cbb1
commit
7edbd19675
@@ -791,7 +791,10 @@ Web::WebDriver::Response Client::release_actions(Web::WebDriver::Parameters para
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling DELETE /session/<session_id>/actions");
|
||||
auto session = TRY(find_session_with_id(parameters[0]));
|
||||
return session->web_content_connection().release_actions();
|
||||
|
||||
return session->perform_async_action([&](auto& connection) {
|
||||
return connection.release_actions();
|
||||
});
|
||||
}
|
||||
|
||||
// 16.1 Dismiss Alert, https://w3c.github.io/webdriver/#dismiss-alert
|
||||
|
||||
Reference in New Issue
Block a user