mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibWebView+WebContent: Wait for dialog responses without blocking IPC
Currently, the WebContent process is completely blocked while waiting for a response to a dialog request. This patch allows the IPC event loop to continue executing while only blocking the HTML event loop. This will allow other processes like WebDriver to continue to operate on the WebContent process while a dialog is open.
This commit is contained in:
committed by
Linus Groh
parent
4b8729aea6
commit
364f44d7d8
@@ -181,14 +181,14 @@ void WebContentClient::did_request_alert(String const& message)
|
||||
m_view.notify_server_did_request_alert({}, message);
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestConfirmResponse WebContentClient::did_request_confirm(String const& message)
|
||||
void WebContentClient::did_request_confirm(String const& message)
|
||||
{
|
||||
return m_view.notify_server_did_request_confirm({}, message);
|
||||
m_view.notify_server_did_request_confirm({}, message);
|
||||
}
|
||||
|
||||
Messages::WebContentClient::DidRequestPromptResponse WebContentClient::did_request_prompt(String const& message, String const& default_)
|
||||
void WebContentClient::did_request_prompt(String const& message, String const& default_)
|
||||
{
|
||||
return m_view.notify_server_did_request_prompt({}, message, default_);
|
||||
m_view.notify_server_did_request_prompt({}, message, default_);
|
||||
}
|
||||
|
||||
void WebContentClient::did_change_favicon(Gfx::ShareableBitmap const& favicon)
|
||||
|
||||
Reference in New Issue
Block a user