feat(chromium): use no-startup-window to not create default context (#1106)
This commit is contained in:
Родитель
c7ade1a711
Коммит
dcdc7db158
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"main": "index.js",
|
||||
"playwright": {
|
||||
"chromium_revision": "740847",
|
||||
"chromium_revision": "744254",
|
||||
"firefox_revision": "1029",
|
||||
"webkit_revision": "1155"
|
||||
},
|
||||
|
|
|
@ -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');
|
||||
|
|
Загрузка…
Ссылка в новой задаче