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

Provide a js fallback when the wasm version of openjpeg is failing to load (bug 1935076)

This commit is contained in:
Calixte Denizet 2025-02-20 22:34:46 +01:00
parent 6713c239e3
commit 36e4f5c222
8 changed files with 107 additions and 18 deletions

View file

@ -638,7 +638,7 @@ class Driver {
password: task.password,
cMapUrl: CMAP_URL,
standardFontDataUrl: STANDARD_FONT_DATA_URL,
wasmUrl: WASM_URL,
wasmUrl: task.noWasm ? null : WASM_URL,
disableAutoFetch: !task.enableAutoFetch,
pdfBug: true,
useSystemFonts: task.useSystemFonts,

View file

@ -6411,6 +6411,14 @@
"rounds": 1,
"type": "eq"
},
{
"id": "issue19326_nowasm",
"file": "pdfs/issue19326.pdf",
"md5": "b4d937017daf439a6318501428e0c6ba",
"noWasm": true,
"rounds": 1,
"type": "eq"
},
{
"id": "issue19326_main_thread_fetch",
"file": "pdfs/issue19326.pdf",