Configure Puppeteer to use the stable version of Chrome

We currently use the pinned version of Chrome as hardcoded in the
Puppeteer release, which is based on the version of Chrome that was
deemed stable at the time of the Puppeteer release.

However, this is not ideal because it means that Chrome updates are
strongly tied to Puppeteer releases, so if Puppeteer releases are slow
we could be missing out on e.g. (security) patches being applied on the
stable channel. It's also not consistent with Firefox where we don't
use a hardcoded pinned version either.

This commit therefore configures Puppeteer to use (resolve) the most
recent stable version of Chrome at the time of the installation so that
determining the browser version to use is fully decoupled from the
Puppeteer release we're running.

The effect of this change can be seen in the output of running
`npx puppeteer browsers list`:

Before:

`chrome@149.0.7827.22 (linux) <path>`

After (note the slightly newer version):

`chrome@149.0.7827.115 (linux)` <path>`
This commit is contained in:
Tim van der Meij 2026-06-14 16:28:36 +02:00
parent 66c22b1fc5
commit 6bfefa53da
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -1,6 +1,7 @@
{
"chrome": {
"skipDownload": false
"skipDownload": false,
"version": "stable"
},
"chrome-headless-shell": {
"skipDownload": true