WebContent: Load {allow,block}lists from Ladybird's config directory

This commit is contained in:
circl
2024-07-16 18:52:12 +02:00
committed by Andrew Kaster
parent b61b1374f0
commit be147ae122
4 changed files with 18 additions and 10 deletions

View File

@@ -80,6 +80,10 @@ ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
web_content_options.executable_path.to_byte_string(),
};
if (web_content_options.config_path.has_value()) {
arguments.append("--config-path"sv);
arguments.append(web_content_options.config_path.value());
}
if (web_content_options.is_layout_test_mode == Ladybird::IsLayoutTestMode::Yes)
arguments.append("--layout-test-mode"sv);
if (web_content_options.use_lagom_networking == Ladybird::UseLagomNetworking::Yes)