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

This commit is contained in:
Dmitry Gozman 2020-02-25 11:43:17 -08:00 committed by GitHub
parent c7ade1a711
commit dcdc7db158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');