Update PDF.js to new version 33e857995c0217c4d0c480d65005e6dd6149c125 from 2025-12-23 14:46:59
Categories
(Firefox :: PDF Viewer, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | affected |
People
(Reporter: update-bot, Assigned: update-bot)
References
(Blocks 1 open bug)
Details
(Whiteboard: [3pl-filed][task_id: DlDftwgxQ9S-k3ppF_YriA])
Attachments
(1 file)
This update covers 18 commits. Here are the overall diff statistics, and then the commit information.
toolkit/components/pdfjs/content/build/pdf.mjs | 59 +-
toolkit/components/pdfjs/content/build/pdf.scripting.mjs | 4 +-
toolkit/components/pdfjs/content/build/pdf.worker.mjs | 56 +-
toolkit/components/pdfjs/content/web/images/checkmark.svg | 5 +
toolkit/components/pdfjs/content/web/images/pages_closeButton.svg | 3 +
toolkit/components/pdfjs/content/web/images/pages_selected.svg | 7 +
toolkit/components/pdfjs/content/web/images/pages_viewArrow.svg | 3 +
toolkit/components/pdfjs/content/web/images/pages_viewButton.svg | 3 +
toolkit/components/pdfjs/content/web/images/toolbarButton-sidebarToggle.svg => toolkit/components/pdfjs/content/web/images/toolbarButton-viewsManagerToggle.svg | 0
toolkit/components/pdfjs/content/web/viewer-geckoview.mjs | 61 +-
toolkit/components/pdfjs/content/web/viewer.css | 959 ++++++--
toolkit/components/pdfjs/content/web/viewer.html | 255 +-
toolkit/components/pdfjs/content/web/viewer.mjs | 1042 ++++++---
toolkit/components/pdfjs/moz.yaml | 4 +-
toolkit/locales/en-US/toolkit/pdfviewer/viewer.ftl | 99 +-
15 files changed, 1765 insertions(+), 795 deletions(-)
fbce8bf829cba78281ea93e845c524725ff2c3ff by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/fbce8bf829cba78281ea93e845c524725ff2c3ff
Authored: 2025-12-23 15:26:07 +0100
Committed: 2025-12-23 15:27:30 +0100
Remove some files from talos tests because they aren't available on webarchive
Files Modified:
- test/test_manifest.json
91033c2199888dd36f2ac0f373859748ddaab4d5 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/91033c2199888dd36f2ac0f373859748ddaab4d5
Authored: 2025-12-23 14:05:17 +0100
Committed: 2025-12-23 14:05:27 +0100
Fix the encoding for some missing chinese fonts
It fixes #20489.
Files Added:
- test/pdfs/issue20489.pdf
Files Modified:
- src/core/evaluator.js
- src/core/font_substitutions.js
- test/pdfs/.gitignore
- test/test_manifest.json
4ff582acbec780a3639f19e78fa8ff2293179073 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/4ff582acbec780a3639f19e78fa8ff2293179073
Authored: 2025-12-23 10:35:59 +0100
Committed: 2025-12-23 10:36:05 +0100
Avoid pattern creation with some basic gradients
Some gradients are represented as patterns in PDF.js, because they
mustn't be affected by the current transform. But in most of the cases,
the gradient is attached to the origin and the current transform is very
basic (dilatation + orthogonal + translation). In those cases, we can
avoid creating the pattern because the gradient is transformed into
another gradient when the inverse transform is applied.
Files Modified:
- src/display/pattern_helper.js
01531dac06da3f352112699e8fefeae6e717534c by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/01531dac06da3f352112699e8fefeae6e717534c
Authored: 2025-12-23 10:00:36 +0100
Committed: 2025-12-23 10:00:36 +0100
Simplify regex escaping
Files Modified:
- web/pdf_find_controller.js
fc4985819f6fb262c80bbf79d55d1045a24f70c7 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/fc4985819f6fb262c80bbf79d55d1045a24f70c7
Authored: 2025-12-21 21:34:42 +0100
Committed: 2025-12-22 23:45:34 +0100
Avoid exception when trying to render some glyphs contours
It fixes #20513.
Files Added:
- test/pdfs/issue20513.pdf
Files Modified:
- src/display/font_loader.js
- test/pdfs/.gitignore
- test/test_manifest.json
6d95eaad28e37a74bb0b196befad35fb6432bac8 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/6d95eaad28e37a74bb0b196befad35fb6432bac8
Authored: 2025-12-22 23:15:09 +0100
Committed: 2025-12-22 23:15:20 +0100
Dont' throw when adding page labels in thumbnails
It fixes #20520.
Files Modified:
- web/pdf_thumbnail_view.js
71140e7d0ffa15c85def7cb86186322751eee44c by Tim van der Meij <timvandermeij@gmail.com>
https://github.com/mozilla/pdf.js/commit/71140e7d0ffa15c85def7cb86186322751eee44c
Authored: 2025-12-22 19:37:01 +0100
Committed: 2025-12-22 19:41:39 +0100
Introduce a helper function to draw a line in the ink editor integration tests
This commit extracts the logic to draw a line from one coordinate to
another to both remove code duplication (8% of the total number of lines
in the file are removed) and clarify the intent of the individual tests.
Files Modified:
- test/integration/ink_editor_spec.mjs
923a778d261b7587de74b7dedbf3ad05a4d8cbfc by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/923a778d261b7587de74b7dedbf3ad05a4d8cbfc
Authored: 2025-12-22 17:41:50 +0100
Committed: 2025-12-22 17:41:53 +0100
Escape punctuation signs in search query
It fixes #20516.
The chars *{}()[]\ are punctuation signs in regex, so they need to be escaped
when searching for them literally.
Files Added:
- test/pdfs/issue20516.pdf
Files Modified:
- test/pdfs/.gitignore
- test/unit/pdf_find_controller_spec.js
- web/pdf_find_controller.js
65ae8f62daf64358e556a2de5ae1a1ce7d0dc9e6 by Tim van der Meij <timvandermeij@gmail.com>
https://github.com/mozilla/pdf.js/commit/65ae8f62daf64358e556a2de5ae1a1ce7d0dc9e6
Authored: 2025-12-13 18:56:55 +0100
Committed: 2025-12-22 16:26:37 +0100
Update translations to the most recent versions
Files Modified:
- l10n/be/viewer.ftl
- l10n/bs/viewer.ftl
- l10n/cs/viewer.ftl
- l10n/cy/viewer.ftl
- l10n/da/viewer.ftl
- l10n/de/viewer.ftl
- l10n/dsb/viewer.ftl
- l10n/el/viewer.ftl
- l10n/en-CA/viewer.ftl
- l10n/en-GB/viewer.ftl
- l10n/eo/viewer.ftl
- l10n/es-AR/viewer.ftl
- l10n/es-CL/viewer.ftl
- l10n/es-ES/viewer.ftl
- l10n/es-MX/viewer.ftl
- l10n/eu/viewer.ftl
- l10n/fi/viewer.ftl
- l10n/fr/viewer.ftl
- l10n/fur/viewer.ftl
- l10n/fy-NL/viewer.ftl
- l10n/gn/viewer.ftl
- l10n/he/viewer.ftl
- l10n/hr/viewer.ftl
- l10n/hsb/viewer.ftl
- l10n/hu/viewer.ftl
- l10n/hy-AM/viewer.ftl
- l10n/ia/viewer.ftl
- l10n/id/viewer.ftl
- l10n/is/viewer.ftl
- l10n/it/viewer.ftl
- l10n/ja/viewer.ftl
- l10n/ka/viewer.ftl
- l10n/kab/viewer.ftl
- l10n/kk/viewer.ftl
- l10n/ko/viewer.ftl
- l10n/nb-NO/viewer.ftl
- l10n/nl/viewer.ftl
- l10n/nn-NO/viewer.ftl
- l10n/pa-IN/viewer.ftl
- l10n/pl/viewer.ftl
- l10n/pt-BR/viewer.ftl
- l10n/pt-PT/viewer.ftl
- l10n/rm/viewer.ftl
- l10n/ro/viewer.ftl
- l10n/ru/viewer.ftl
- l10n/sk/viewer.ftl
- l10n/sl/viewer.ftl
- l10n/sq/viewer.ftl
- l10n/sv-SE/viewer.ftl
- l10n/tg/viewer.ftl
- l10n/th/viewer.ftl
- l10n/tr/viewer.ftl
- l10n/vi/viewer.ftl
- l10n/zh-CN/viewer.ftl
- l10n/zh-TW/viewer.ftl
40a8fdbca9736bd1401fa26b360d5182fd87ea48 by Tim van der Meij <timvandermeij@gmail.com>
https://github.com/mozilla/pdf.js/commit/40a8fdbca9736bd1401fa26b360d5182fd87ea48
Authored: 2025-12-13 18:55:52 +0100
Committed: 2025-12-22 16:26:37 +0100
Upgrade @types/node to version 25.0.1
This is a major version bump, but the patch at
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/73924
doesn't indicate any breaking changes that should impact us as it mainly
includes support for Node.js 25.
Files Modified:
- package-lock.json
- package.json
c5db38dd860b24ce4f4f22b804d78bf94d142902 by Tim van der Meij <timvandermeij@gmail.com>
https://github.com/mozilla/pdf.js/commit/c5db38dd860b24ce4f4f22b804d78bf94d142902
Authored: 2025-12-13 18:48:39 +0100
Committed: 2025-12-22 16:26:37 +0100
Update dependencies to the most recent versions
Files Modified:
- gulpfile.mjs
- package-lock.json
- package.json
8bcbf22ad4c22483207dba7f9dd121e022abe725 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/8bcbf22ad4c22483207dba7f9dd121e022abe725
Authored: 2025-12-22 16:01:30 +0100
Committed: 2025-12-22 16:01:30 +0100
Fix unit tests in adding a comma in the JSON for imports
Files Modified:
- test/unit/unit_test.html
b92f742a26c8f24e0b4411d011ec83b39facb07e by Tim van der Meij <timvandermeij@gmail.com>
https://github.com/mozilla/pdf.js/commit/b92f742a26c8f24e0b4411d011ec83b39facb07e
Authored: 2025-12-13 19:17:34 +0100
Committed: 2025-12-21 18:19:29 +0100
Run the CI tests in Node.js version 25 too
Node.js version 25 is the current (non-LTS) release, see
https://github.com/nodejs/release#release-schedule, so we should run the
tests with that version too to help catch any possible issues sooner.
Files Modified:
- .github/workflows/ci.yml
2367196a006b80b15d452abb903e902d6eebe079 by calixteman <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/2367196a006b80b15d452abb903e902d6eebe079
Authored: 2025-12-09 21:34:26 +0100
Committed: 2025-12-15 17:43:52 +0100
Change the sidebar for a views manager
Update the styles and HTML to reflect the new views manager concept.
For now, nothing about split/merge functionality is implemented or visible.
The new styles for the outline, attachments, and layers will be added later.
The thumbnail view is now accessible with the keyboard.
Files Added:
- web/images/checkmark.svg
- web/images/pages_closeButton.svg
- web/images/pages_selected.svg
- web/images/pages_viewArrow.svg
- web/images/pages_viewButton.svg
- web/views_manager.css
Files Modified:
- gulpfile.mjs
- l10n/en-US/viewer.ftl
- test/integration/thumbnail_view_spec.mjs
- test/unit/unit_test.html
- web/app.js
- web/pdf_attachment_viewer.js
- web/pdf_thumbnail_view.js
- web/pdf_thumbnail_viewer.js
- web/pdf_viewer.css
- web/stubs-geckoview.js
- web/ui_utils.js
- web/viewer-geckoview.html
- web/viewer.css
- web/viewer.html
- web/viewer.js
Files Changed:
- R100 web/images/toolbarButton-sidebarToggle.svg
- R067 web/pdf_sidebar.js
f42a120aac2feedb5ca001ab5cae0c4c82d932e7 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/f42a120aac2feedb5ca001ab5cae0c4c82d932e7
Authored: 2025-12-15 16:18:57 +0100
Committed: 2025-12-15 16:19:10 +0100
Fix some css in the tree view
It's a follow-up of #20493.
And simplify a bit the js to have only one click listener in the tree instead of
having one on each toggler.
Files Modified:
- web/base_tree_viewer.js
- web/pdf_layer_viewer.js
- web/tree.css
- web/viewer.html
0b60e9c2132d632fad04c9706c83cc3d7ddd3159 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
https://github.com/mozilla/pdf.js/commit/0b60e9c2132d632fad04c9706c83cc3d7ddd3159
Authored: 2025-12-15 12:05:28 +0000
Committed: 2025-12-15 12:05:28 +0000
Bump actions/upload-artifact from 5 to 6
Bumps actions/upload-artifact from 5 to 6.
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Files Modified:
- .github/workflows/publish_website.yml
9de04ef3de84027511a2bc47d178c83634b21486 by Calixte Denizet <calixte.denizet@gmail.com>
https://github.com/mozilla/pdf.js/commit/9de04ef3de84027511a2bc47d178c83634b21486
Authored: 2025-12-12 17:33:20 +0100
Committed: 2025-12-12 17:33:20 +0100
Fix the position of the checkmark when the menu is displayed in RTL
Files Modified:
- web/menu.css
a25448502db9575f00fa88267e5c65e0a0bb7d81 by Uzair-Ahmed-Shah <msg.uzair@gmail.com>
https://github.com/mozilla/pdf.js/commit/a25448502db9575f00fa88267e5c65e0a0bb7d81
Authored: 2025-12-08 22:37:52 +0530
Committed: 2025-12-08 22:37:52 +0530
Fix #20420: Prevent double decoding of file URL parameter
Files Modified:
- test/integration/viewer_spec.mjs
- web/app.js
| Assignee | ||
Comment 2•5 hours ago
|
||
| DlDftwgxQ9S-k3ppF_YriA | ||
I've submitted a try run for this commit: https://treeherder.mozilla.org/jobs?repo=try&revision=200b432e4b59ac04dabdb69c34cf44d9b51230bb
| Assignee | ||
Comment 3•5 hours ago
|
||
Updated•5 hours ago
|
Description
•