Compare commits

..

1 Commits

Author SHA1 Message Date
NimBold ceaf8095ac test(startup): isolate main WebView construction for issue 37 2026-08-27 20:46:48 +03:30
2 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ const child = spawn(executable, [], {
detached: process.platform !== 'win32',
env: {
...process.env,
FIRELINK_SMOKE_TEST: '1',
FIRELINK_DISABLE_ARIA2_WEBSOCKET: '1',
FIRELINK_SMOKE_TEST: '1',
FIRELINK_SKIP_MAIN_WINDOW: '1',
WEBKIT_DISABLE_COMPOSITING_MODE: '1',
GDK_BACKEND: 'x11',
},
+5 -6
View File
@@ -18561,9 +18561,11 @@ pub fn run() {
.focused(false)
.focusable(false);
}
main_window_builder
.build()
.map_err(|error| format!("failed to create main window: {error}"))?;
if std::env::var_os("FIRELINK_SKIP_MAIN_WINDOW").is_none() {
main_window_builder
.build()
.map_err(|error| format!("failed to create main window: {error}"))?;
}
restore_pending_main_window(app.handle());
#[cfg(any(target_os = "windows", target_os = "linux"))]
@@ -18854,9 +18856,6 @@ pub fn run() {
}
}
if std::env::var_os("FIRELINK_DISABLE_ARIA2_WEBSOCKET").is_some() {
return;
}
let mut ws_retries = 0;
loop {
if ws_retries == 10 {