Skip to content

Commit dcdc7db

Browse files
authored
feat(chromium): use no-startup-window to not create default context (#1106)
1 parent c7ade1a commit dcdc7db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"main": "index.js",
1010
"playwright": {
11-
"chromium_revision": "740847",
11+
"chromium_revision": "744254",
1212
"firefox_revision": "1029",
1313
"webkit_revision": "1155"
1414
},

src/server/chromium.ts

+2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ export class Chromium implements BrowserType {
191191
'--mute-audio'
192192
);
193193
}
194+
if (launchType !== 'persistent')
195+
chromeArguments.push('--no-startup-window');
194196
chromeArguments.push(...args);
195197
if (args.every(arg => arg.startsWith('-')))
196198
chromeArguments.push('about:blank');

0 commit comments

Comments
 (0)