mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-19 10:57:29 +02:00
feat: extension management
This commit is contained in:
@@ -396,6 +396,7 @@ impl WayfernManager {
|
||||
url: Option<&str>,
|
||||
proxy_url: Option<&str>,
|
||||
ephemeral: bool,
|
||||
extension_paths: &[String],
|
||||
) -> Result<WayfernLaunchResult, Box<dyn std::error::Error + Send + Sync>> {
|
||||
let executable_path = if let Some(path) = &config.executable_path {
|
||||
let p = PathBuf::from(path);
|
||||
@@ -448,6 +449,10 @@ impl WayfernManager {
|
||||
args.push("--disable-sync".to_string());
|
||||
}
|
||||
|
||||
if !extension_paths.is_empty() {
|
||||
args.push(format!("--load-extension={}", extension_paths.join(",")));
|
||||
}
|
||||
|
||||
// Don't add URL to args - we'll navigate via CDP after setting fingerprint
|
||||
// This ensures fingerprint is applied at navigation commit time
|
||||
|
||||
@@ -834,6 +839,7 @@ impl WayfernManager {
|
||||
url,
|
||||
proxy_url,
|
||||
profile.ephemeral,
|
||||
&[],
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user