mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
WebContent+WebDriver: Convert all user prompt handlers to be async
Making these async were all actually pretty trivial. This patch does so, and removes the deprecated synchronous user prompt handler.
This commit is contained in:
parent
d13011bfbc
commit
3da20aca65
Notes:
github-actions[bot]
2024-11-03 21:12:10 +00:00
Author: https://github.com/trflynn89
Commit: 3da20aca65
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2140
4 changed files with 510 additions and 385 deletions
|
@ -131,7 +131,9 @@ Web::WebDriver::Response Session::close_window()
|
|||
ScopeGuard guard { [this] { m_windows.remove(m_current_window_handle); m_current_window_handle = "NoSuchWindowPleaseSelectANewOne"_string; } };
|
||||
|
||||
// 3. Close the current top-level browsing context.
|
||||
TRY(web_content_connection().close_window());
|
||||
TRY(perform_async_action([&](auto& connection) {
|
||||
return connection.close_window();
|
||||
}));
|
||||
|
||||
// 4. If there are no more open top-level browsing contexts, then close the session.
|
||||
if (m_windows.size() == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue