Skip to content

Commit edaba88

Browse files
committed
Disable site isolation for M1
1 parent ea9afb9 commit edaba88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webdriver-ts/src/webdriverAccess.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ export function buildDriver(benchmarkOptions: BenchmarkDriverOptions): WebDriver
250250
"--window-size=1200,800"
251251
];
252252

253+
if (process.platform == "darwin" && process.arch=="arm64") {
254+
console.log("INFO: Disabling site isolation as a workaround for Mac M1");
255+
args.push("--disable-features=IsolateOrigins,site-per-process");
256+
}
257+
253258
if (benchmarkOptions.headless) {
254259
args.push("--headless");
255260
args.push("--disable-gpu"); // https://bugs.chromium.org/p/chromium/issues/detail?id=737678

0 commit comments

Comments
 (0)