1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00

LibWeb+LibWebView+WebContent+WebDriver: Implement Send Alert Text

This commit is contained in:
Timothy Flynn 2022-11-16 08:57:05 -05:00 committed by Linus Groh
parent f9b8742fff
commit f7bb835d09
Notes: sideshowbarker 2024-07-17 04:24:59 +09:00
13 changed files with 70 additions and 0 deletions

View file

@ -378,6 +378,12 @@ void OutOfProcessWebView::notify_server_did_request_prompt(Badge<WebContentClien
m_dialog = nullptr;
}
void OutOfProcessWebView::notify_server_did_request_set_prompt_text(Badge<WebContentClient>, String const& message)
{
if (m_dialog && is<GUI::InputBox>(*m_dialog))
static_cast<GUI::InputBox&>(*m_dialog).set_text_value(message);
}
void OutOfProcessWebView::notify_server_did_request_accept_dialog(Badge<WebContentClient>)
{
if (m_dialog)