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(FirefoxLauncher): use wait-for-process option on Windows #6315

Merged
merged 1 commit into from Aug 10, 2020

Conversation

mjzffr
Copy link
Contributor

@mjzffr mjzffr commented Aug 6, 2020

Without --wait-for-process, puppeteer.launch returns before Firefox is ready on Windows, so this should be part of the default Firefox arguments on that platform.

On Windows, firefox.exe starts a "launcher process" that is responsible for configuring and starting the "real" browser process. Passing --wait-for-process makes that launcher process wait for the entire life of the browser process, and will also propagate the browser process's exit code as its own.

Note that the test highlighted in #5673 is still expected to fail because BrowserRunner doesn't track the right process on Windows, which breaks its close callback.

Copy link
Collaborator

@jackfranklin jackfranklin left a comment

Choose a reason for hiding this comment

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

Nice fix, thanks!

@mathiasbynens mathiasbynens merged commit 054d782 into puppeteer:main Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants