summaryrefslogtreecommitdiff
path: root/Ladybird/WebDriver
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-03-12 12:38:15 -0400
committerLinus Groh <mail@linusgroh.de>2023-03-13 07:21:00 +0000
commit11fe34ce0fb827f3bfe9c61c31b3dbe99a894233 (patch)
tree8662c62c9701ed1955d58be045f3c2e6a7a4c060 /Ladybird/WebDriver
parentadd15a5f04984592121839a27fcb59992ec1b737 (diff)
downloadserenity-11fe34ce0fb827f3bfe9c61c31b3dbe99a894233.zip
headless-browser: Re-implement headless-browser using an OOPWV
headless-browser currently uses its own PageClient to load web pages in-process. Due to this, it also needs to set up a whole bunch of other objects needed to run LibWeb, e.g. image decoders, request servers, etc. This changes headless-browser to instead implement a WebView to launch WebContent out-of-process. This implementation is almost entirely empty, but can be filled in as-needed. For example, we may want to print JavaScript console messages.
Diffstat (limited to 'Ladybird/WebDriver')
-rw-r--r--Ladybird/WebDriver/main.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Ladybird/WebDriver/main.cpp b/Ladybird/WebDriver/main.cpp
index 7c668af984..0367fa0ad4 100644
--- a/Ladybird/WebDriver/main.cpp
+++ b/Ladybird/WebDriver/main.cpp
@@ -65,17 +65,11 @@ static ErrorOr<pid_t> launch_browser(DeprecatedString const& socket_path)
static ErrorOr<pid_t> launch_headless_browser(DeprecatedString const& socket_path)
{
auto resources = DeprecatedString::formatted("{}/res", s_serenity_resource_root);
- auto error_page = DeprecatedString::formatted("{}/res/html/error.html", s_serenity_resource_root);
- auto certs = DeprecatedString::formatted("{}/etc/ca_certs.ini", s_serenity_resource_root);
char const* argv[] = {
"headless-browser",
"--resources",
resources.characters(),
- "--error-page",
- error_page.characters(),
- "--certs",
- certs.characters(),
"--webdriver-ipc-path",
socket_path.characters(),
"about:blank",