File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,7 @@ jobs:
471471
472472 $env:RUST_LOG = "debug"
473473 $env:RUST_BACKTRACE = "1"
474+ $env:ANGLE_DEFAULT_PLATFORM = "swiftshader"
474475
475476 # No additional environment variables needed - Chrome flags handle everything
476477
Original file line number Diff line number Diff line change @@ -306,16 +306,26 @@ const CHROME_DEFAULT_CAPS: [&str; 23] = [
306306] ;
307307
308308#[ cfg( all( feature = "chromedriver" , target_os = "windows" ) ) ]
309- const CHROME_DEFAULT_CAPS : [ & str ; 8 ] = [
310- "--headless" ,
309+ const CHROME_DEFAULT_CAPS : [ & str ; 17 ] = [
310+ "--headless=new " ,
311311 "--no-sandbox" ,
312312 "--disable-dev-shm-usage" ,
313313 "--disable-breakpad" ,
314314 "--no-first-run" ,
315315 "--no-default-browser-check" ,
316+ // Stability flags to prevent renderer crashes
317+ "--disable-background-networking" ,
318+ "--disable-sync" ,
319+ "--disable-translate" ,
320+ "--disable-background-timer-throttling" ,
321+ "--disable-renderer-backgrounding" ,
322+ "--disable-backgrounding-occluded-windows" ,
323+ "--disable-ipc-flooding-protection" ,
316324 // Minimal flags for Windows headless operation without disabling GPU
317325 "--hide-scrollbars" ,
318326 "--mute-audio" ,
327+ "--use-angle=swiftshader" ,
328+ "--disable-software-rasterizer" ,
319329] ;
320330
321331#[ cfg( feature = "geckodriver" ) ]
You can’t perform that action at this time.
0 commit comments