Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 24, 2018

Conversation

aslushnikov
Copy link
Contributor

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.

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.
@aslushnikov aslushnikov changed the title fix(launcher): always add about:blank to default arguments. fix(launcher): always add about:blank to default arguments Jul 24, 2018
@@ -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('-')))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a slight functionality change. There is now no way to get the newtab page in headful chrome as the startup tab. That is probably fine though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now no way to get the newtab page in headful chrome as the startup tab.

I think you can navigate to chrome://newtab

@aslushnikov aslushnikov merged commit ca99a67 into puppeteer:master Jul 24, 2018
@aslushnikov aslushnikov deleted the always-open-default-page branch August 1, 2018 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants