Skip to content

Upgrade pdf.js to 3.11.174

Chaoyue Zhao requested to merge upgrade-pdf-part-1 into master

What does this MR do and why?

Upgrade pdf.js version to 3.11.174. This change adds two babel plugins to parse javascript syntax that are supported by webpack 4

  • @babel/plugin-transform-optional-chaining
  • @babel/plugin-transform-logical-assignment-operators Both were introduced in v3.0.279

🗒 This is Part 1 of the 2 MRs that eventually allows us to safely remove the patch that prevented PDF.js from evaluating scripts when rendering PDF files in the UI to close a security vulnerability but had performance implications around rendering fonts.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

viewing PDF file works as expected

Edited by Chaoyue Zhao

Merge request reports

Loading