1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 09:08:07 +02:00

Merge pull request #19537 from Snuffleupagus/api-useWasm

[api-minor] Re-factor how the `useWorkerFetch` option is used internally
This commit is contained in:
Jonas Jenwald 2025-02-22 14:16:31 +01:00 committed by GitHub
commit a648e1e769
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 23 deletions

View file

@ -638,10 +638,11 @@ class Driver {
password: task.password,
cMapUrl: CMAP_URL,
standardFontDataUrl: STANDARD_FONT_DATA_URL,
wasmUrl: task.noWasm ? null : WASM_URL,
wasmUrl: WASM_URL,
disableAutoFetch: !task.enableAutoFetch,
pdfBug: true,
useSystemFonts: task.useSystemFonts,
useWasm: task.useWasm,
useWorkerFetch: task.useWorkerFetch,
enableXfa: task.enableXfa,
isOffscreenCanvasSupported,

View file

@ -6422,9 +6422,9 @@
"id": "issue19326_nowasm",
"file": "pdfs/issue19326.pdf",
"md5": "b4d937017daf439a6318501428e0c6ba",
"noWasm": true,
"rounds": 1,
"type": "eq"
"type": "eq",
"useWasm": false
},
{
"id": "issue19326_main_thread_fetch",