-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
refactor!: enable the new-headless mode by default #11815
Conversation
0aeddff
to
ca4ee07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR changes the meaning for the `headless` flag. Previously, `headless=true` would launch the old headless mode also known as `chrome-headless-shell`. After this change, the new headless module will be launched instead. To migrate: 1) if you were using 'headless=true' and want to use `chrome-headless-shell`, change to `headless: 'chrome-headless-shell'`. 2) if you were using 'headless=new', change to `headless: true`
f5cca1f
to
802e792
Compare
I think it's not user-friendly first to suggest users to change their codes to Maybe it's too late for this time, and further changes might cause more confusion. But when there are similar changes next time, I suggest that a better decision could be made. e.g. Set it to |
@ouuan thanks for the feedback. Note that it is a breaking semver release, so we have done breaking changes to not support |
Yes, but it did not mention that
A breaking change is necessary to change the semantic of |
This is a major version bump that requires two changes on our side: - The new headless mode is now the default, so we can remove our transformation code (see puppeteer/puppeteer#11815). - The `page.waitForTimeout` API is removed. Sadly we still used it in the integration tests (but fortunately much less than before we worked on fixing intermittent failures), so until we remove the final occurrences we provide an implementation ourselves (see puppeteer/puppeteer#11780). The full changelog can be found here: https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-core-v22.0.0
Puppeteer 22 drops support for Node 16 and requires Node 18+ [1]. The main change for us is how `headless` is configured. [2] The new headless mode is now enabled by default in Puppeteer, corresponding to `headless: true` instead of `headless: 'new'`. We already opted-in to this before in grunt-contrib-qunit so it is not relevant for grunt-contrib-qunit release notes. This also includes "roll to Chrome 125", from puppeteer 22.10.0 [3]. [1]: https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-core-v22.0.0 [2]: puppeteer/puppeteer#11815 [3]: https://github.com/puppeteer/puppeteer/blob/puppeteer-v22.10.0/packages/puppeteer/CHANGELOG.md
This PR changes the meaning for the
headless
flag. Previously,headless=true
launched the old headless mode also known aschrome-headless-shell
. After this change, the new headless module will be launched instead.To migrate:
chrome-headless-shell
, change toheadless: 'chrome-headless-shell'
.headless: true