feat(chromium): use no-startup-window to not create default context

This commit is contained in:
Dmitry Gozman 2020-02-25 09:08:37 -08:00
parent 30a4d0e797
commit bb6dfdf0ac
2 changed files with 3 additions and 1 deletions

View file

@ -8,7 +8,7 @@
},
"main": "index.js",
"playwright": {
"chromium_revision": "740847",
"chromium_revision": "744254",
"firefox_revision": "1029",
"webkit_revision": "1155"
},

View file

@ -191,6 +191,8 @@ export class Chromium implements BrowserType {
'--mute-audio'
);
}
if (launchType !== 'persistent')
chromeArguments.push('--no-startup-window');
chromeArguments.push(...args);
if (args.every(arg => arg.startsWith('-')))
chromeArguments.push('about:blank');