box / box-content-preview

JavaScript library for rendering files stored on Box
https://developer.box.com/docs/box-content-preview
Other
106 stars 113 forks source link

fix(pdf): Whitelist font attributes to avoid clone issues #1412

Closed ConradJChan closed 3 years ago

ConradJChan commented 3 years ago

Applying the fix found in https://github.com/mozilla/pdf.js/issues/13771 to add an allow list of properties of the font so as to avoid any unexpected properties that are added by browser implementations which interfere with the ability to clone objects from the main thread to web workers.

The PDFjs is v2.2.228 copied from the 2.16.0 folder and changes are localized to pdf.worker.js and pdf.worker.min.js

TODO