feat(launcher): launch browser with 'about:blank' by default (#2594)

fixes #2402
This commit is contained in:
Yaniv Efraim
2018-05-26 03:26:40 +03:00
committed by Andrey Lushnikov
parent 1e07925e26
commit b8df8bdf4a
2 changed files with 25 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ class Launcher {
'--mute-audio'
);
}
if (!options.ignoreDefaultArgs && Array.isArray(options.args) && options.args.every(arg => arg.startsWith('-')))
chromeArguments.push('about:blank');
let chromeExecutable = options.executablePath;
if (typeof chromeExecutable !== 'string') {
const browserFetcher = new BrowserFetcher();