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

LibWeb+WebContent: Move pending dialog handling from PageHost to Page

Currently, all handling of pending dialogs occurs in PageHost. In order
to re-use this functionality to run WebDriver in a headless move, move
it to Page.
This commit is contained in:
Timothy Flynn 2022-11-21 15:18:42 -05:00 committed by Linus Groh
parent 7c00619e47
commit 1f08cb7020
7 changed files with 189 additions and 126 deletions

View file

@ -108,6 +108,11 @@ public:
}
// ^Web::PageClient
virtual bool is_connection_open() const override
{
return true;
}
virtual Gfx::Palette palette() const override
{
return Gfx::Palette(*m_palette_impl);
@ -199,14 +204,12 @@ public:
{
}
virtual bool page_did_request_confirm(String const&) override
virtual void page_did_request_confirm(String const&) override
{
return false;
}
virtual String page_did_request_prompt(String const&, String const&) override
virtual void page_did_request_prompt(String const&, String const&) override
{
return String::empty();
}
virtual String page_did_request_cookie(AK::URL const&, Web::Cookie::Source) override