mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:27:45 +00:00
LibWeb+WebContent: Support window.confirm() in OOPWV
This commit is contained in:
parent
abf7c02acb
commit
1ad65b173b
7 changed files with 23 additions and 2 deletions
|
@ -176,4 +176,9 @@ void PageHost::page_did_request_alert(const String& message)
|
|||
m_client.send_sync<Messages::WebContentClient::DidRequestAlert>(message);
|
||||
}
|
||||
|
||||
bool PageHost::page_did_request_confirm(const String& message)
|
||||
{
|
||||
return m_client.send_sync<Messages::WebContentClient::DidRequestConfirm>(message)->result();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -68,6 +68,7 @@ private:
|
|||
virtual void page_did_start_loading(const URL&) override;
|
||||
virtual void page_did_finish_loading(const URL&) override;
|
||||
virtual void page_did_request_alert(const String&) override;
|
||||
virtual bool page_did_request_confirm(const String&) override;
|
||||
|
||||
explicit PageHost(ClientConnection&);
|
||||
|
||||
|
|
|
@ -15,4 +15,5 @@ endpoint WebContentClient = 90
|
|||
DidRequestContextMenu(Gfx::IntPoint content_position) =|
|
||||
DidRequestLinkContextMenu(Gfx::IntPoint content_position, URL url, String target, unsigned modifiers) =|
|
||||
DidRequestAlert(String message) => ()
|
||||
DidRequestConfirm(String message) => (bool result)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue