mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-05 17:51:03 +02:00
The GitHub Actions workflow for the integration tests on Windows logs the following line for every test: `JavaScript warning: http://127.0.0.1:62313/build/generic/build/pdf.mjs, line 134934: WebGPU is disabled by blocklist.` On Linux WebGPU is disabled by default because of missing support, but on Windows it's enabled by default since bug 1972486, so we try to obtain a GPU adapter which fails (and logs) if there is no actual GPU like on GitHub Actions. Coverage data confirms that our own WebGPU code is already uncovered because of the lack of a GPU, so having WebGPU enabled or disabled doesn't change that, but if it causes log spam it seems better to disable it, which this commit does. Note that Chrome doesn't seem to have a matching flag, but Chrome already doesn't log anything about this (which is the primary driver for this change), so that's not a problem.