mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
parent
5b1898785b
commit
ca99a67aad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user