[Webkit-unassigned] [Bug 273435] PDF.js contains binary code

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 4 09:49:22 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273435

--- Comment #12 from Michael Catanzaro <mcatanzaro at redhat.com> ---
Surprise: I checked out the Firefox source code, and it does NOT have this same problem, despite using a newer PDF.js than we do. The problem is still present in upstream PDF.js, so Firefox is doing something differently.

* Check out https://archive.mozilla.org/pub/firefox/releases/130.0/source/firefox-130.0.source.tar.xz
* Open firefox-130.0.source/firefox-130.0/toolkit/components/pdfjs/pdf.worker.mjs
* Search for ";// CONCATENATED MODULE: ./external/openjpeg/openjpeg.js"
* Notice lots of normal JavaScript code rather than the wasm binary that's present in the upstream version

If we could figure out how Firefox has accomplished this, that might present a path forward.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240904/e942bc81/attachment-0001.htm>


More information about the webkit-unassigned mailing list