Update PDF.js to new version 32b6649db7915fa6a97e40e80fdd0dfe203ff695 from 2026-10-23 07:04:41 UTC
Categories
(Firefox :: PDF Viewer, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | affected |
People
(Reporter: update-bot, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [3pl-filed][task_id: BwOEoIVERpiCsmAFjo9A1w])
This update covers 22 commits. Here are the overall diff statistics, and then the commit information.
toolkit/components/pdfjs/content/PdfJsVersion.sys.mjs | 2 +-
toolkit/components/pdfjs/content/build/pdf.mjs | 58 +++---
toolkit/components/pdfjs/content/build/pdf.renderer.mjs | 50 +++---
toolkit/components/pdfjs/content/build/pdf.scripting.mjs | 4 +-
toolkit/components/pdfjs/content/build/pdf.worker.mjs | 108 ++++++++-----
toolkit/components/pdfjs/content/web/viewer-geckoview.mjs | 10 +-
toolkit/components/pdfjs/content/web/viewer.css | 14 +-
toolkit/components/pdfjs/content/web/viewer.mjs | 10 +-
toolkit/components/pdfjs/moz.yaml | 4 +-
9 files changed, 140 insertions(+), 120 deletions(-)
11731d5af741f5af56ba298c08cb31b68e23a9d5 by github-actions[bot] <github-actions[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/11731d5af741f5af56ba298c08cb31b68e23a9d5
Authored: 2026-10-23 00:32:16 +0000
Committed: 2026-10-23 00:32:16 +0000
l10n: Update locale files
Files Modified:
- l10n/bg/viewer.ftl
- l10n/ko/viewer.ftl
- l10n/sk/viewer.ftl
- l10n/skr/viewer.ftl
d19f04ac1a6af5ea063a87f5162067f70116a152 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/d19f04ac1a6af5ea063a87f5162067f70116a152
Authored: 2026-10-22 09:19:29 +0200
Committed: 2026-10-22 22:10:06 +0200
Include the final NFKC range when searching
The loop only flushed a range when it found the next one, dropping
U+FFE8-U+FFEE. Flush the pending range and update the Firefox table.
Co-authored-by: huang <13165998033@163.com>
Files Modified:
- test/unit/pdf_find_utils_spec.js
- web/pdf_find_utils.js
d8262655db9afef0ae86e20423c793c16bbfe542 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/d8262655db9afef0ae86e20423c793c16bbfe542
Authored: 2026-10-22 15:58:04 +0200
Committed: 2026-10-22 16:14:50 +0200
Use codspeed macro runners for running the perf benchmarks
Files Modified:
- .github/workflows/codspeed.yml
4f04847153f71c6d255c1a3540ebf224c822566f by Jonas Jenwald <jonas.jenwald@gmail.com>
https://github.com/mozilla/pdf.js/commit/4f04847153f71c6d255c1a3540ebf224c822566f
Authored: 2026-10-22 13:28:52 +0200
Committed: 2026-10-22 13:33:21 +0200
Avoid loops when initializing data in the calculateMD5, calculateSHA256, and calculateSHA512 functions
Instead we can use TypedArray.prototype.subarray and TypedArray.prototype.set, since that's slightly faster.
Files Modified:
- src/core/calculate_md5.js
- src/core/calculate_sha256.js
- src/core/calculate_sha_other.js
87108e40905f6b121fc4ec587cdb053e9a27f598 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/87108e40905f6b121fc4ec587cdb053e9a27f598
Authored: 2026-10-22 09:55:57 +0200
Committed: 2026-10-22 10:03:43 +0200
Use the font bbox to extend the head table bounds (bug 1888084)
The default xMin of 0 excludes the accent in bug 1888084, which disappears
at higher zoom levels in Firefox on macOS.
Extend the horizontal bounds using the font bbox, preserving the defaults
when it is smaller.
Files Added:
- test/pdfs/bug1888084.pdf
Files Modified:
- src/core/fonts.js
- test/pdfs/.gitignore
- test/test_manifest.json
- test/unit/fonts_spec.js
66322f12d2078ceaab121013381c6bae025160ee by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/66322f12d2078ceaab121013381c6bae025160ee
Authored: 2026-10-22 01:39:06 +0000
Committed: 2026-10-22 01:39:06 +0000
Bump @vitest/mocker and vitest
Bumps @vitest/mocker to 4.1.12 and updates ancestor dependency vitest. These dependencies need to be updated together.
Updates @vitest/mocker from 4.1.11 to 4.1.12
Updates vitest from 4.1.11 to 4.1.12
updated-dependencies:
- dependency-name: "@vitest/mocker"
dependency-version: 4.1.12
dependency-type: indirect - dependency-name: vitest
dependency-version: 4.1.12
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- package-lock.json
- package.json
e8dd2d16048e0264537c05cb679493fe42f2f466 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/e8dd2d16048e0264537c05cb679493fe42f2f466
Authored: 2026-10-22 01:38:57 +0000
Committed: 2026-10-22 01:38:57 +0000
Bump markdown-it from 14.3.2 to 14.3.3
Bumps markdown-it from 14.3.2 to 14.3.3.
updated-dependencies:
- dependency-name: markdown-it
dependency-version: 14.3.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- package-lock.json
a79d4fe3a2056be65a838e57e7d88bd50b3c869d by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/a79d4fe3a2056be65a838e57e7d88bd50b3c869d
Authored: 2026-10-21 21:41:39 +0200
Committed: 2026-10-21 21:41:39 +0200
Add a lint rule against Math.min/max calls with more than four arguments
Files Modified:
- eslint.config.mjs
552de2ce09e0aa0a452a98a0b9dbd865d3250942 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/552de2ce09e0aa0a452a98a0b9dbd865d3250942
Authored: 2026-10-21 20:40:40 +0200
Committed: 2026-10-21 20:47:28 +0200
Avoid five-argument Math.min/max calls in Util.axialAlignedBoundingBox
Math.min/Math.max with more than 4 arguments aren't optimized by
SpiderMonkey (see tryAttachMathMinMax in CacheIR.cpp); this makes
Util.axialAlignedBoundingBox ~3.4x faster in Firefox, no change in V8.
Files Modified:
- src/shared/util.js
18c31b1ce652cd3d114600b7d13a40340075875e by Jonas Jenwald <jonas.jenwald@gmail.com>
https://github.com/mozilla/pdf.js/commit/18c31b1ce652cd3d114600b7d13a40340075875e
Authored: 2026-10-19 13:54:18 +0200
Committed: 2026-10-21 17:59:01 +0200
Use TypedArray.prototype.set in the meshPackData function
Rather than manually getting and setting each coordinate respectively color component, we can simply utilize TypedArray.prototype.set instead.
Files Modified:
- src/core/pattern.js
4ee5938af5af87e361801562b9e5b497685cfb36 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/4ee5938af5af87e361801562b9e5b497685cfb36
Authored: 2026-10-21 15:22:16 +0200
Committed: 2026-10-21 17:42:31 +0200
Fix Type3 text advances
Advance invisible text. Keep character and word spacing independent of
the font-size sign. Exclude font matrix translation from glyph advances.
Files Added:
- test/pdfs/type3_advance.pdf
Files Modified:
- src/display/canvas.js
- test/pdfs/.gitignore
- test/test_manifest.json
e2debff7be6f869a364b258fa8c10224d50dc8c2 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/e2debff7be6f869a364b258fa8c10224d50dc8c2
Authored: 2026-10-21 15:23:57 +0200
Committed: 2026-10-21 16:26:18 +0200
Keep pending clip and fill-rule state out of pattern tiles
Files Added:
- test/pdfs/pattern_fill_pending_state.pdf
Files Modified:
- src/display/canvas.js
- test/pdfs/.gitignore
- test/test_manifest.json
253684004e16ecb756e83046d952a8dedfee7db5 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/253684004e16ecb756e83046d952a8dedfee7db5
Authored: 2026-10-21 15:24:45 +0200
Committed: 2026-10-21 15:24:45 +0200
Render the existing page in the issue10491-partial reftest
Files Modified:
- test/test_manifest.json
63044789fc7f4ee2528b80887e10999224d6b30f by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/63044789fc7f4ee2528b80887e10999224d6b30f
Authored: 2026-10-20 18:08:11 +0200
Committed: 2026-10-21 15:10:10 +0200
Speed up asyncGetBytesFromDecompressionStream
Read decompressed chunks with reader.read() rather than for await, skip
writer.ready waits, and return single-chunk output without copying it.
Files Modified:
- src/core/decode_stream.js
- test/unit/stream_spec.js
09c2dae2967b6ced454817a8dd8286adfa01563d by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/09c2dae2967b6ced454817a8dd8286adfa01563d
Authored: 2026-10-21 14:04:26 +0200
Committed: 2026-10-21 14:42:19 +0200
Reset the alpha of colored Type3 glyphs in their operator list
Files Modified:
- src/core/evaluator.js
- src/display/canvas.js
f6fa4987c760d891206ce1b78deee627a345e325 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/f6fa4987c760d891206ce1b78deee627a345e325
Authored: 2026-10-21 09:35:56 +0200
Committed: 2026-10-21 09:51:35 +0200
Use Canvas for toggled controls on LinkText in forced-colors mode (bug 2083002)
and inset toggled-button hover outlines in forced-colors mode
Files Modified:
- web/viewer.css
3d630f6a76ffdb67d6b9e1c54722ee81bc499fba by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/3d630f6a76ffdb67d6b9e1c54722ee81bc499fba
Authored: 2026-10-20 12:15:50 +0000
Committed: 2026-10-20 12:15:50 +0000
Bump actions/create-github-app-token from 3.2.0 to 3.3.0
Bumps actions/create-github-app-token from 3.2.0 to 3.3.0.
updated-dependencies:
- dependency-name: actions/create-github-app-token
dependency-version: 3.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- .github/workflows/notify-pdf-sync.yml
- .github/workflows/publish_coverage_index.yml
- .github/workflows/ref_tests_makeref.yml
- .github/workflows/ref_tests_request.yml
- .github/workflows/update_locales.yml
- .github/workflows/viewer_preview_manage.yml
- .github/workflows/viewer_preview_publish.yml
9f88fdbd32e71af5c419928c13bc07f2b3a7a856 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/9f88fdbd32e71af5c419928c13bc07f2b3a7a856
Authored: 2026-10-20 12:15:40 +0000
Committed: 2026-10-20 12:15:40 +0000
Bump github/codeql-action/init from 4.38.2 to 4.38.3
Bumps github/codeql-action/init from 4.38.2 to 4.38.3.
updated-dependencies:
- dependency-name: github/codeql-action/init
dependency-version: 4.38.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- .github/workflows/codeql.yml
ef03155e030d5219849483923134e5391664a969 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/ef03155e030d5219849483923134e5391664a969
Authored: 2026-10-20 12:14:44 +0000
Committed: 2026-10-20 12:14:44 +0000
Bump github/codeql-action/autobuild from 4.38.2 to 4.38.3
Bumps github/codeql-action/autobuild from 4.38.2 to 4.38.3.
updated-dependencies:
- dependency-name: github/codeql-action/autobuild
dependency-version: 4.38.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- .github/workflows/codeql.yml
33104f4df442b5b96e88b793d29d90a6c75ac70f by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/33104f4df442b5b96e88b793d29d90a6c75ac70f
Authored: 2026-10-20 12:13:54 +0000
Committed: 2026-10-20 12:13:54 +0000
Bump github/codeql-action/analyze from 4.38.2 to 4.38.3
Bumps github/codeql-action/analyze from 4.38.2 to 4.38.3.
updated-dependencies:
- dependency-name: github/codeql-action/analyze
dependency-version: 4.38.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- .github/workflows/codeql.yml
955e389c6253faf759efad6e0c56d39661cbd437 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/955e389c6253faf759efad6e0c56d39661cbd437
Authored: 2026-10-18 16:45:32 +0200
Committed: 2026-10-19 14:33:41 +0200
Fall back to the Identity crypt filter without a /CF dictionary
With /V 4 or 5 and no /CF dictionary, or a non-dictionary one, resolving a
crypt filter threw a TypeError: the strings and streams of such documents
could neither be decrypted nor encrypted when saving. /StmF and /StrF then
default to /Identity, which doesn't need a /CF entry.
Files Modified:
- src/core/crypto.js
- test/unit/crypto_spec.js
0c7ac9670f1ea1b712d715e18d8cf9d2620503d1 by Jonas Jenwald <jonas.jenwald@gmail.com>
https://github.com/mozilla/pdf.js/commit/0c7ac9670f1ea1b712d715e18d8cf9d2620503d1
Authored: 2026-10-18 14:48:05 +0200
Committed: 2026-10-19 12:19:33 +0200
Add a Util helper for creating a Uint8Array identity-map with 256 elements
Rather than having to re-create such an identity-map in multiple spots throughout the code-base, we can do that lazily just once (per thread) instead.
This way we can either just copy the existing identity-map, or in some cases even use it directly via TypedArray.prototype.set().
Files Modified:
- src/core/crypto.js
- src/core/lzw_stream.js
- src/display/canvas.js
- src/shared/util.js
| Reporter | ||
Comment 2•1 month ago
|
||
| BwOEoIVERpiCsmAFjo9A1w | ||
I've submitted a try run for this commit: https://treeherder.mozilla.org/jobs?repo=try&revision=08aec9a8c00607fd25450b5f0dac5ace81fce49a
| Reporter | ||
Comment 3•1 month ago
|
||
| BwOEoIVERpiCsmAFjo9A1w | ||
Updatebot encountered an error while trying to submit to phabricator.
Updatebot will be unable to do anything more for this library version.
Updated•1 month ago
|
Updated•1 month ago
|
| Reporter | ||
Comment 4•1 month ago
|
||
| Yei5ZC1WQOm5YbJmYMaq1g | ||
This bug is being closed because a newer revision of the library is available.
This bug will be marked as a duplicate of it (because although this bug is older, it is superseded by the newer one).
Description
•