Fix extensions not being loaded from config.json (#750)

Fix issue where Chrome extensions specified in the `extensions` field of `config.json` were not being loaded when launching the browser.

## Problem
Extensions configured via the `extensions` field in `config.json` were not being passed to the Chrome browser launch command, causing them to be ignored.

## Changes
- Added `!flags.extensions.is_empty()` to the launch trigger condition to ensure browser launch is triggered when extensions are configured
- Added extensions to the launch command JSON payload so they are properly passed to the browser

Fixes #726
This commit is contained in:
Chris Tate
2026-03-13 02:42:39 -05:00
committed by GitHub
parent 1327856889
commit 640d259130
+6 -1
View File
@@ -732,7 +732,8 @@ fn main() {
|| flags.allow_file_access
|| flags.color_scheme.is_some()
|| flags.download_path.is_some()
|| flags.engine.is_some())
|| flags.engine.is_some()
|| !flags.extensions.is_empty())
&& flags.cdp.is_none()
&& flags.provider.is_none()
{
@@ -786,6 +787,10 @@ fn main() {
cmd_obj.insert("args".to_string(), json!(args_vec));
}
if !flags.extensions.is_empty() {
cmd_obj.insert("extensions".to_string(), json!(&flags.extensions));
}
if flags.ignore_https_errors {
launch_cmd["ignoreHTTPSErrors"] = json!(true);
}