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

LibWeb+WebContent+WebDriver: Implement Accept Alert

This commit is contained in:
Timothy Flynn 2022-11-16 07:24:22 -05:00 committed by Linus Groh
parent 7cf2feb047
commit 3e7d633954
9 changed files with 45 additions and 0 deletions

View file

@ -320,6 +320,19 @@ void PageHost::dismiss_dialog()
}
}
void PageHost::accept_dialog()
{
switch (m_pending_dialog) {
case PendingDialog::None:
break;
case PendingDialog::Alert:
case PendingDialog::Confirm:
case PendingDialog::Prompt:
m_client.async_did_request_accept_dialog();
break;
}
}
void PageHost::page_did_change_favicon(Gfx::Bitmap const& favicon)
{
m_client.async_did_change_favicon(favicon.to_shareable_bitmap());