diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-20 18:39:20 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-21 09:39:49 +0000 |
commit | e6fc35897f1daf67074bb823193301713f011189 (patch) | |
tree | 33d2d6b5b975fdfc0b0a8886438cd173aea65790 /Userland/Utilities | |
parent | 78ed798852117a7e129de057b585dc5b642b40ee (diff) | |
download | serenity-e6fc35897f1daf67074bb823193301713f011189.zip |
WebContent+Everywhere: Add an option to not activate new tabs over IPC
WebDriver, for example, will want to create new tabs without activating
them.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/headless-browser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp index 6cbe8fee1e..a3e4599f57 100644 --- a/Userland/Utilities/headless-browser.cpp +++ b/Userland/Utilities/headless-browser.cpp @@ -36,6 +36,7 @@ #include <LibIPC/File.h> #include <LibWeb/Cookie/Cookie.h> #include <LibWeb/Cookie/ParsedCookie.h> +#include <LibWeb/HTML/ActivateTab.h> #include <LibWeb/Loader/FrameLoader.h> #include <LibWebView/ViewImplementation.h> #include <LibWebView/WebContentClient.h> @@ -132,7 +133,7 @@ private: DeprecatedString notify_server_did_request_cookie(Badge<WebView::WebContentClient>, const URL&, Web::Cookie::Source) override { return {}; } void notify_server_did_set_cookie(Badge<WebView::WebContentClient>, const URL&, Web::Cookie::ParsedCookie const&, Web::Cookie::Source) override { } void notify_server_did_update_cookie(Badge<WebView::WebContentClient>, Web::Cookie::Cookie const&) override { } - String notify_request_open_new_tab(Badge<WebView::WebContentClient>) override { return {}; } + String notify_server_did_request_new_tab(Badge<WebView::WebContentClient>, Web::HTML::ActivateTab) override { return {}; } void notify_server_did_close_browsing_context(Badge<WebView::WebContentClient>) override { } void notify_server_did_update_resource_count(i32) override { } void notify_server_did_request_restore_window() override { } |