puppeteer/src
Josh Bielick 6d6ea9bf59
fix: always use ENV executable path when present (#7985)
Some recent changes to allow arm64 environments (including M1 macs) to
launch a chromium installation successfully before arm-compatible builds
were downloadable prevented the usage of PUPPETEER_EXECUTABLE_PATH in
some environments. Currently, when the platform is not darwin and the
arch is arm64, an executable cannot be specified using the environment
variable.

Generally speaking, environment variables have highest precedence for
options such as this since they depend on system configuration.

These change:

1. allow the ENV variable to always be used when defined and not
   specified in LaunchOptions (and when not puppeteer-core)
2. Retain the existing behavior of assuming /usr/bin/chromium-browser on
   platforms like Ubuntu (exact if-conditions preserved to avoid any
   breaking changes)
3. Add some tests for this particular portion of the code.
2022-02-11 13:07:31 +00:00
..
common revert: esm modules (#7996) 2022-02-10 13:34:36 +00:00
node fix: always use ENV executable path when present (#7985) 2022-02-11 13:07:31 +00:00
.eslintrc.js chore: update eslint & eslint plugins (#6487) 2020-10-12 10:30:35 +01:00
api-docs-entry.ts fix: improve TS types for launching browsers (#6888) 2021-02-16 09:39:31 +00:00
environment.ts chore: shorter node checker function (#6584) 2020-11-05 07:49:58 +01:00
initialize-node.ts revert: esm modules (#7996) 2022-02-10 13:34:36 +00:00
initialize-web.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
node-puppeteer-core.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
node.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
revisions.ts feat(chromium): roll to Chromium 99.0.4844.16 (r961656) (#7960) 2022-02-04 12:18:53 +01:00
tsconfig.cjs.json chore: vendor Mitt & update project structure (#6209) 2020-07-14 16:57:29 +01:00
tsconfig.esm.json feat(types): expose typedefs to consumers (#6745) 2021-01-13 10:37:35 +01:00
web.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00