1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibWeb+WebContent: Support window.confirm() in OOPWV

This commit is contained in:
Andreas Kling 2021-02-10 08:48:28 +01:00
parent abf7c02acb
commit 1ad65b173b
7 changed files with 23 additions and 2 deletions

View file

@ -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();
}
}