Update PDF.js to new version 25d979c9b1c739d418d6f10f0f2b702f89338e70 from 2026-09-28 18:13:24
Categories
(Firefox :: PDF Viewer, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | affected |
People
(Reporter: update-bot, Assigned: calixte)
References
(Blocks 1 open bug)
Details
(Whiteboard: [3pl-filed][task_id: HhU1Vua_QmmSu8lnNssWlw])
Attachments
(1 obsolete file)
This update covers 3 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 | 62 +++++---------
toolkit/components/pdfjs/content/build/pdf.scripting.mjs | 4 +-
toolkit/components/pdfjs/content/build/pdf.worker.mjs | 48 +++++------
toolkit/components/pdfjs/content/web/viewer-geckoview.mjs | 8 +-
toolkit/components/pdfjs/content/web/viewer.mjs | 8 +-
toolkit/components/pdfjs/moz.yaml | 4 +-
7 files changed, 55 insertions(+), 81 deletions(-)
77ebaf094b17efe89ed2ae62713c5bc69f580030 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/77ebaf094b17efe89ed2ae62713c5bc69f580030
Authored: 2026-09-27 12:25:53 +0200
Committed: 2026-09-27 14:29:45 +0200
Use a Uint8Array to track missing TrueType glyphs (bug 2075570)
Replace the Set introduced in PR #21911 with one byte per glyph.
Glyph IDs are integer indices in [0, numGlyphs).
It'll help to slightly improve performance.
Files Modified:
- src/core/fonts.js
5e18cef66758ec91d9c5c4a8bd21b58b36ecbf13 by Jonas Jenwald <jonas.jenwald@gmail.com>
https://github.com/mozilla/pdf.js/commit/5e18cef66758ec91d9c5c4a8bd21b58b36ecbf13
Authored: 2026-09-26 13:41:26 +0200
Committed: 2026-09-26 13:45:12 +0200
Add a helper function for writing buffer-data in compileFontInfo
Currently we duplicate the same exact code twice when writing the systemFontInfoBuffer and cssFontInfoBuffer data.
Note: This reduces the size of the gulp mozcentral bundle by 271 bytes, which isn't a lot but still cannot hurt.
Files Modified:
- src/core/obj_bin_transform_core.js
78348aa61a70d720a478cef5c59249137aea39ee by Jonas Jenwald <jonas.jenwald@gmail.com>
https://github.com/mozilla/pdf.js/commit/78348aa61a70d720a478cef5c59249137aea39ee
Authored: 2026-09-25 11:06:56 +0200
Committed: 2026-09-25 11:07:39 +0200
Introduce a helper to reduce duplication when reading compiled string-data from fonts
Currently the CssFontInfo, SystemFontInfo, and FontInfo classes duplicate virtually the same code when reading string-data, which seems completely unnecessary.
The SystemFontInfo.prototype.style getter can also be re-factored to use the new helper function, rather than manually reading those strings.
Note: This reduces the size of the gulp mozcentral bundle by 627 bytes, and with the upcoming worker-rendering this saving will be doubled.
Files Modified:
- src/display/obj_bin_transform_display.js
| Reporter | ||
Comment 1•2 months ago
|
||
| HhU1Vua_QmmSu8lnNssWlw | ||
I've submitted a try run for this commit: https://treeherder.mozilla.org/jobs?repo=try&revision=745d898d1b7d8a0b427dd951d43bf2849c0a072d
| Reporter | ||
Comment 2•2 months ago
|
||
| Reporter | ||
Comment 3•2 months ago
|
||
| EfgHilyAQO--envB8RcS2A | ||
All the jobs in the try run succeeded. Like literally all of them, there weren't
even any intermittents. That is pretty surprising to me, so maybe you should double
check to make sure I didn't misinterpret things and that the correct tests ran...
Anyway, I've done all I can, so I'm passing to you to review and land the patch.
When reviewing, please note that this is external code, which needs a full and
careful inspection - not a rubberstamp.
| Reporter | ||
Comment 4•2 months ago
|
||
| EfgHilyAQO--envB8RcS2A | ||
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).
Updated•2 months ago
|
Description
•