diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-21 15:18:42 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-24 00:10:56 +0000 |
commit | 1f08cb7020dd6f916852c2d40bd63a016875a798 (patch) | |
tree | 3d8a080c87e06d83a1769af43fc5b0af7034ab45 /Userland/Utilities | |
parent | 7c00619e47380385bb9595db1bfbf30f1e150b55 (diff) | |
download | serenity-1f08cb7020dd6f916852c2d40bd63a016875a798.zip |
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.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/headless-browser.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp index 986387ebcf..8721a90be0 100644 --- a/Userland/Utilities/headless-browser.cpp +++ b/Userland/Utilities/headless-browser.cpp @@ -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 |