Repository navigation
build(pdfjs): update to pdf.js 6.4.299 - #2
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
September 15, 2026 09:45
d9f00f9 to
2f72780
Compare
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
October 6, 2026 11:41
2f72780 to
2beddf8
Compare
github-actions
Bot
force-pushed
the
chore/update-pdfjs-viewer
branch
from
October 13, 2026 12:27
2beddf8 to
8deb4b7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
pdfjs-distfrom 6.2.108 to 6.4.299 and re-vendors the viewer underpackages/pdfjs-viewer/viewerfrom the matching pdf.js release. The two have tomove together — pdf.js refuses to start when their versions disagree — which is
why neither Renovate nor Dependabot handles this dependency.
Re-vendoring re-applies our patches to
viewer.html(the custom stylesheet andscript, and the relaxed
style-src-elemCSP) and fails if upstream's markup movedout from under them.
CI ran the unit and Playwright suites against the result before opening this PR,
since a scheduled run's PR does not start workflows of its own.
Vendored files changed
Only
viewer.htmlis patched by us; everything else is upstream verbatim.Upstream comparison
pdf.js release notes for v6.4.299
This release contains improvements for annotation rendering, font conversion, form handling, pattern rendering, performance, text selection and the viewer.
Changes since v6.3.289
pdfjs.configby @timvandermeij in Bump the stable version inpdfjs.configmozilla/pdf.js#21843src/core/xml_parser.jsby @timvandermeij in Implement unit tests for the error cases insrc/core/xml_parser.jsmozilla/pdf.js#21848catchmethods by @Snuffleupagus in Use arrow functions consistently with Promisecatchmethods mozilla/pdf.js#21849infologging from the "GetOperatorList"/"GetTextContent" handlers (issue 21836) by @Snuffleupagus in Remove oldinfologging from the "GetOperatorList"/"GetTextContent" handlers (issue 21836) mozilla/pdf.js#21840PDFDocumentProperties.prototype.#parsePageSizeby @Snuffleupagus in Get the l10n arguments at once inPDFDocumentProperties.prototype.#parsePageSizemozilla/pdf.js#21856ScreenAnnotation.#isPlayActionmethod by @Snuffleupagus in Move checks into theScreenAnnotation.#isPlayActionmethod mozilla/pdf.js#21862fallbackparameter fromL10n.prototype.getby @Snuffleupagus in Remove the unusedfallbackparameter fromL10n.prototype.getmozilla/pdf.js#21857collectActionsfunction by @Snuffleupagus in Add a helper to reduce duplication in thecollectActionsfunction mozilla/pdf.js#21863operatorListto theoperationsFiltercallback function (issue 20399) by @Snuffleupagus in [api-minor] Expose theoperatorListto theoperationsFiltercallback function (issue 20399) mozilla/pdf.js#21868deployment: falseon thecode-coverageenvironment jobs by @calixteman in Setdeployment: falseon thecode-coverageenvironment jobs mozilla/pdf.js#21853MediaAnnotation.prototype._getContentTypeby @Snuffleupagus in Improve the filename extension detection inMediaAnnotation.prototype._getContentTypemozilla/pdf.js#21887seacMapandseacsstructures into Maps by @Snuffleupagus in Convert the fontseacMapandseacsstructures into Maps mozilla/pdf.js#21884MessageHandlerclass by @Snuffleupagus in Modernize theMessageHandlerclass mozilla/pdf.js#21883CmdCache,NameCache, andRefCacheto use Maps by @Snuffleupagus in Convert theCmdCache,NameCache, andRefCacheto use Maps mozilla/pdf.js#21888@babel/runtimedependency by @calixteman in Remove the unused@babel/runtimedependency mozilla/pdf.js#21894kleurwithutil.styleTextby @calixteman in Replacekleurwithutil.styleTextmozilla/pdf.js#21895@napi-rs/canvasfor PNG decoding in integration tests by @calixteman in Use@napi-rs/canvasfor PNG decoding in integration tests mozilla/pdf.js#21896Ref.fromStringmore strict, by not accepting "bad" arguments by @Snuffleupagus in MakeRef.fromStringmore strict, by not accepting "bad" arguments mozilla/pdf.js#21898interpolatehelper, such that it can be re-used more insrc/core/function.jscode by @Snuffleupagus in Move the theinterpolatehelper, such that it can be re-used more insrc/core/function.jscode mozilla/pdf.js#21905CFFOffsetTrackeroffsets into a Map by @Snuffleupagus in Convert theCFFOffsetTrackeroffsets into a Map mozilla/pdf.js#21910missingGlyphs, used in theFontclass, into a Set by @Snuffleupagus in Convert themissingGlyphs, used in theFontclass, into a Set mozilla/pdf.js#21911forEachcallback functions with arrow functions by @Snuffleupagus in ReplaceforEachcallback functions with arrow functions mozilla/pdf.js#21915ViewHistory.prototype.{get, set}methods by @Snuffleupagus in Remove theViewHistory.prototype.{get, set}methods mozilla/pdf.js#21914importPrintedAppearancesfunction, in thesrc/core/worker.jsfile (PR 21858 follow-up) by @Snuffleupagus in Use a "normal" import statement to access theimportPrintedAppearancesfunction, in thesrc/core/worker.jsfile (PR 21858 follow-up) mozilla/pdf.js#219236.4by @Snuffleupagus in Bump library version to6.4mozilla/pdf.js#21929OptionalContentConfig,FontLoader, andFontFaceObjectcode when building for workers by @Snuffleupagus in Stub outOptionalContentConfig,FontLoader, andFontFaceObjectcode when building for workers mozilla/pdf.js#21926PDFDocumentPropertiesdialog by @Snuffleupagus in Utilize Fluent better when localizing thePDFDocumentPropertiesdialog mozilla/pdf.js#21938PDFDocumentPropertiestests (PR 21938 follow-up) by @Snuffleupagus in Fix intermittent failures in thePDFDocumentPropertiestests (PR 21938 follow-up) mozilla/pdf.js#21941waitForTooltipToBehelper function in the annotation integration tests by @timvandermeij in Use thewaitForTooltipToBehelper function in the annotation integration tests mozilla/pdf.js#21943FontFaceObject.prototype.getPathGeneratorcache into a Map by @Snuffleupagus in Change theFontFaceObject.prototype.getPathGeneratorcache into a Map mozilla/pdf.js#21947_loadTestFontdefinition in theFontLoader.prototyp._prepareFontLoadEventmethod by @Snuffleupagus in Inline the_loadTestFontdefinition in theFontLoader.prototyp._prepareFontLoadEventmethod mozilla/pdf.js#21948waitForTextToBehelper function in the editor undo bar integration tests by @timvandermeij in Use thewaitForTextToBehelper function in the editor undo bar integration tests mozilla/pdf.js#21949FontLoader.prototype.isFontLoadingAPISupportedgetter by @Snuffleupagus in Re-factor theFontLoader.prototype.isFontLoadingAPISupportedgetter mozilla/pdf.js#21950waitForTextToBehelper function in the editor alert bar integration tests by @timvandermeij in Use thewaitForTextToBehelper function in the editor alert bar integration tests mozilla/pdf.js#21951FontLoaderclass by @Snuffleupagus in Re-factor the test-font fallback loading in theFontLoaderclass mozilla/pdf.js#21952waitForTextToBehelper function in the remaining integration tests by @timvandermeij in Use thewaitForTextToBehelper function in the remaining integration tests mozilla/pdf.js#21953CFFDictclasses to use Maps, rather than plain Objects by @Snuffleupagus in Convert theCFFDictclasses to use Maps, rather than plain Objects mozilla/pdf.js#21955IdentityCMap.prototype.getMapas unreachable by @Snuffleupagus in MarkIdentityCMap.prototype.getMapas unreachable mozilla/pdf.js#21956charCodeToGlyphId, used in various font-code, into a Map by @Snuffleupagus in ConvertcharCodeToGlyphId, used in various font-code, into a Map mozilla/pdf.js#21961createWithNullProtohelper from theCFFParserunit-tests by @Snuffleupagus in Remove thecreateWithNullProtohelper from theCFFParserunit-tests mozilla/pdf.js#21973compileFontInfoby @Snuffleupagus in Add a helper function for writing array-data incompileFontInfomozilla/pdf.js#21976page.focusin integration tests by @calixteman in Settle editor focus beforepage.focusin integration tests mozilla/pdf.js#21982DifferencesArray, used with non-composite fonts, into a Map by @Snuffleupagus in Convert theDifferencesArray, used with non-composite fonts, into a Map mozilla/pdf.js#21984toFontCharArray, in theFontclass, into a Map by @Snuffleupagus in Convert thetoFontCharArray, in theFontclass, into a Map mozilla/pdf.js#21985unicorn/prefer-combined-guardslinting rule by @timvandermeij in Enable theunicorn/prefer-combined-guardslinting rule mozilla/pdf.js#21990unicorn/prefer-set-methodslinting rule by @timvandermeij in Enable theunicorn/prefer-set-methodslinting rule mozilla/pdf.js#21992PatternInfoclass (PR 20340 follow-up) by @Snuffleupagus in Remove unnecessary Array copying in thePatternInfoclass (PR 20340 follow-up) mozilla/pdf.js#22003unicorn/prefer-smaller-scopelinting rule by @timvandermeij in Enable theunicorn/prefer-smaller-scopelinting rule mozilla/pdf.js#21993unicorn/prefer-short-arrow-methodlinting rule by @timvandermeij in Enable theunicorn/prefer-short-arrow-methodlinting rule mozilla/pdf.js#21994CMapandToUnicodeMapclasses to store its data in Maps by @Snuffleupagus in Convert theCMapandToUnicodeMapclasses to store its data in Maps mozilla/pdf.js#21975compileFontInfoby @Snuffleupagus in Add a helper function for writing buffer-data incompileFontInfomozilla/pdf.js#22022src/core/obj_bin_transform_core.jsby @Snuffleupagus in Add helper functions for encoding and writing strings insrc/core/obj_bin_transform_core.jsmozilla/pdf.js#22016asyncfunctions when creating StructTreeRoot-data during saving (PR 19026) by @Snuffleupagus in Remove unneededasyncfunctions when creating StructTreeRoot-data during saving (PR 19026) mozilla/pdf.js#22015SystemFontInfo.prototype.guessFallbackgetter by @Snuffleupagus in Remove the unusedSystemFontInfo.prototype.guessFallbackgetter mozilla/pdf.js#22026defaultWidthby default by @Snuffleupagus in Stop exporting the FontdefaultWidthby default mozilla/pdf.js#22028srcPosfor the remaining pixels inconvertRGBToRGBAby @Prafyl in UsesrcPosfor the remaining pixels inconvertRGBToRGBAmozilla/pdf.js#22036defaultVMetricsby default by @Snuffleupagus in Stop exporting the FontdefaultVMetricsby default mozilla/pdf.js#22042mimetypeproperty by @Snuffleupagus in Stop exporting the Fontmimetypeproperty mozilla/pdf.js#22038cidToGidMapwhen building thecharCodeToGlyphIdmap, for embedded composite fonts by @Snuffleupagus in Directly lookup entries in thecidToGidMapwhen building thecharCodeToGlyphIdmap, for embedded composite fonts mozilla/pdf.js#22056FontInfo,CssFontInfo, andSystemFontInfo(PR 20197 follow-up) by @Snuffleupagus in Shadow the getters inFontInfo,CssFontInfo, andSystemFontInfo(PR 20197 follow-up) mozilla/pdf.js#22035nameby default by @Snuffleupagus in Stop exporting the Fontnameby default mozilla/pdf.js#22057extraproperties to theFontInfoclass by @Snuffleupagus in Stop passingextraproperties to theFontInfoclass mozilla/pdf.js#22059ascentanddescentby default, and remove handling of standalone number entries in the compiled font-info by @Snuffleupagus in Stop exporting the Fontascentanddescentby default, and remove handling of standalone number entries in the compiled font-info mozilla/pdf.js#22060SupportedImageMimeTypesinto a Set by @Snuffleupagus in ConvertSupportedImageMimeTypesinto a Set mozilla/pdf.js#22061requestIdin theChunkedStreamManager.prototype._requestChunksmethod by @Snuffleupagus in Avoid creating a pointlessrequestIdin theChunkedStreamManager.prototype._requestChunksmethod mozilla/pdf.js#22064