fix(launcher): always add about:blank to default arguments. (#2942)

Chrome Headless used to open about:blank by default; however, this
was recently changed.

We should open starting page no matter what to keep the environment
predictable.
This commit is contained in:
Andrey Lushnikov 2018-07-24 11:03:30 -07:00 committed by GitHub
parent 5b1898785b
commit ca99a67aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ class Launcher {
if (os.platform() === 'win32')
chromeArguments.push('--disable-gpu');
}
if (!options.ignoreDefaultArgs && Array.isArray(options.args) && options.args.every(arg => arg.startsWith('-')))
if (Array.isArray(options.args) && options.args.every(arg => arg.startsWith('-')))
chromeArguments.push('about:blank');
let chromeExecutable = options.executablePath;