mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-22 16:05:56 +02:00
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:
parent
66c22b1fc5
commit
6bfefa53da
@ -1,6 +1,7 @@
|
||||
{
|
||||
"chrome": {
|
||||
"skipDownload": false
|
||||
"skipDownload": false,
|
||||
"version": "stable"
|
||||
},
|
||||
"chrome-headless-shell": {
|
||||
"skipDownload": true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user