File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -306,13 +306,21 @@ const CHROME_DEFAULT_CAPS: [&str; 23] = [
306306] ;
307307
308308#[ cfg( all( feature = "chromedriver" , target_os = "windows" ) ) ]
309- const CHROME_DEFAULT_CAPS : [ & str ; 8 ] = [
309+ const CHROME_DEFAULT_CAPS : [ & str ; 15 ] = [
310310 "--headless" ,
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" ,
You can’t perform that action at this time.
0 commit comments