mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibWeb: Implement Window.prompt()
This commit is contained in:
parent
f10967e364
commit
5e07c27e25
Notes:
sideshowbarker
2024-07-18 22:07:15 +09:00
Author: https://github.com/linusg
Commit: 5e07c27e25
Pull-request: https://github.com/SerenityOS/serenity/pull/5423
Reviewed-by: https://github.com/awesomekling
14 changed files with 74 additions and 2 deletions
|
@ -181,4 +181,9 @@ bool PageHost::page_did_request_confirm(const String& message)
|
|||
return m_client.send_sync<Messages::WebContentClient::DidRequestConfirm>(message)->result();
|
||||
}
|
||||
|
||||
String PageHost::page_did_request_prompt(const String& message, const String& default_)
|
||||
{
|
||||
return m_client.send_sync<Messages::WebContentClient::DidRequestPrompt>(message, default_)->response();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue