File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,12 @@ export async function startBrowser(benchmarkOptions: BenchmarkOptions): Promise<
111
111
const window_width = width ,
112
112
window_height = height ;
113
113
114
+ const disableFeatures = [
115
+ "Translate" , // avoid translation popups
116
+ "PrivacySandboxSettings4" , // avoid privacy popup
117
+ "IPH_SidePanelGenericMenuFeature" // bookmark popup see https://github.com/krausest/js-framework-benchmark/issues/1688
118
+ ] ;
119
+
114
120
const args = [
115
121
`--window-size=${ window_width } ,${ window_height } ` ,
116
122
"--js-flags=--expose-gc" , // needed for gc() function
@@ -119,9 +125,7 @@ export async function startBrowser(benchmarkOptions: BenchmarkOptions): Promise<
119
125
"--no-first-run" ,
120
126
"--ash-no-nudges" ,
121
127
"--disable-extensions" ,
122
- "--disable-features=Translate" , // avoid translation popups
123
- "--disable-features=PrivacySandboxSettings4" , // avoid privacy popup
124
- "--disable-features=IPH_SidePanelGenericMenuFeature" // bookmark popup see https://github.com/krausest/js-framework-benchmark/issues/1688
128
+ `--disable-features=${ disableFeatures . join ( ) } `
125
129
] ;
126
130
if ( benchmarkOptions . headless ) args . push ( "--headless=new" ) ;
127
131
You can’t perform that action at this time.
0 commit comments