1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:25:07 +00: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
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)