Closed Bug 2094741 Opened 12 days ago Closed 12 days ago

Update PDF.js to new version 1b510d78eebd866077e09ea67a632c97108a8f7c from 2026-11-18 17:57:29 UTC

Categories

(Firefox :: PDF Viewer, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 2094901
Tracking Status
firefox162 --- affected

People

(Reporter: update-bot, Assigned: calixte)

References

(Blocks 1 open bug)

Details

(Whiteboard: [3pl-filed][task_id: PnVyue5mRWuuvYiBoFUbeQ])

Attachments

(1 obsolete file)

This update covers 7 commits, including 3 new upstream commits I've never filed a bug on before. (They're the top 3.). 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 | 36 +-
toolkit/components/pdfjs/content/build/pdf.renderer.mjs | 28 +-
toolkit/components/pdfjs/content/build/pdf.scripting.mjs | 4 +-
toolkit/components/pdfjs/content/build/pdf.worker.mjs | 264 ++++++++-----
toolkit/components/pdfjs/content/web/viewer-geckoview.mjs | 22 +-
toolkit/components/pdfjs/content/web/viewer.mjs | 22 +-
toolkit/components/pdfjs/moz.yaml | 4 +-
8 files changed, 228 insertions(+), 154 deletions(-)

Commits by author:
3 Calixte Denizet <calixte.denizet@gmail.com> (all unsigned)
3 dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (all signed but unverified)
1 calixteman <calixte.denizet@gmail.com> (signed but unverified)


4e15347578526c97bda69458b846f569a2adf822 by calixteman <calixte.denizet@gmail.com>

https://github.com/mozilla/pdf.js/commit/4e15347578526c97bda69458b846f569a2adf822
Authored: 2026-11-18 14:31:52 +0100
Committed: 2026-11-18 15:42:35 +0100

Restore family names for tricky TrueType subsets

Some old CJK fonts (e.g. DFKai-SB) rely on their glyph programs to position
their components. OTS fixes the glyph bounding boxes unless the font has a
known "tricky" family name, and on macOS this moves the components, hence the
glyphs are garbled.
Subsetted fonts embedded in PDFs have often lost their original name, so
identify them, as FreeType does, either with their name or with the checksums
of their cvt, fpgm and prep tables, and restore a Macintosh family name that
OTS recognizes.

It fixes #22550.

Files Added:

  • src/core/tricky_fonts.js
  • test/pdfs/issue22550.pdf.link

Files Modified:

  • src/core/fonts.js
  • src/core/opentype_file_builder.js
  • test/test_manifest.json
  • test/unit/api_spec.js
  • test/unit/fonts_spec.js

476d8b48e4ad00b23efb55abc857fd7878d804ba by Calixte Denizet <calixte.denizet@gmail.com>

https://github.com/mozilla/pdf.js/commit/476d8b48e4ad00b23efb55abc857fd7878d804ba
Authored: 2026-11-18 09:48:40 +0100
Committed: 2026-11-18 13:57:09 +0100

Preserve page edges when rounding page dimensions (bug 2094402)

At fractional device pixel ratios, rounding page dimensions can clip the
right and bottom edges. Fit the full viewport into the rounded canvas
to keep it aligned with the text and annotation layers. Preserve the
canvas sizing scale across redraws.

Files Added:

Files Modified:

  • test/integration/viewer_spec.mjs
  • test/pdfs/.gitignore
  • web/pdf_page_view.js

cb1097d79777911d2229c9dbaa2a174087e6bf76 by Calixte Denizet <calixte.denizet@gmail.com>

https://github.com/mozilla/pdf.js/commit/cb1097d79777911d2229c9dbaa2a174087e6bf76
Authored: 2026-11-16 21:44:59 +0100
Committed: 2026-11-16 21:59:07 +0100

Avoid per-offset work when rebuilding the loca table (bug 2093310)

Choose the loca format from the last offset and the glyph lengths, and
write the offsets with plain byte stores. The output is unchanged, but
it removes ~0.8 ms of cold worker time per TrueType font that #22464
added, enough to flip some pdfpaint loads to the next frame.

Files Modified:

  • src/core/fonts.js

5d658a546ac417cf846e59b297bafc5f34d0c0f8 by Calixte Denizet <calixte.denizet@gmail.com>

https://github.com/mozilla/pdf.js/commit/5d658a546ac417cf846e59b297bafc5f34d0c0f8
Authored: 2026-11-17 16:43:41 +0100
Committed: 2026-11-17 17:27:07 +0100

Composite non-isolated blend groups with a group alpha against their backdrop

Such a group was rendered on a transparent canvas, so e.g. /ColorDodge
light rays kept their dark source color instead of brightening the
background. Copy the backdrop, as already done for soft masks, and
interpolate between it and the group result using the group alpha.

It fixes #22547.

Files Added:

  • test/pdfs/nonisolated_blend_group_alpha.pdf

Files Modified:

  • src/display/canvas.js
  • test/pdfs/.gitignore
  • test/test_manifest.json

1bce1fb494fadcb2d3b7b20b3e61ca1ae0505f65 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

https://github.com/mozilla/pdf.js/commit/1bce1fb494fadcb2d3b7b20b3e61ca1ae0505f65
Authored: 2026-11-17 12:13:07 +0000
Committed: 2026-11-17 12:13:07 +0000

Bump github/codeql-action/init from 4.39.2 to 4.39.3

Bumps github/codeql-action/init from 4.39.2 to 4.39.3.


updated-dependencies:

  • dependency-name: github/codeql-action/init
    dependency-version: 4.39.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

e1b7de5eb3f958df991a234591ea8318fac52c7f by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

https://github.com/mozilla/pdf.js/commit/e1b7de5eb3f958df991a234591ea8318fac52c7f
Authored: 2026-11-17 12:13:03 +0000
Committed: 2026-11-17 12:13:03 +0000

Bump github/codeql-action/analyze from 4.39.2 to 4.39.3

Bumps github/codeql-action/analyze from 4.39.2 to 4.39.3.


updated-dependencies:

  • dependency-name: github/codeql-action/analyze
    dependency-version: 4.39.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

12a248a55f84ddfedd06a82ad1850b7eb197d75d by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

https://github.com/mozilla/pdf.js/commit/12a248a55f84ddfedd06a82ad1850b7eb197d75d
Authored: 2026-11-17 12:12:51 +0000
Committed: 2026-11-17 12:12:51 +0000

Bump github/codeql-action/autobuild from 4.39.2 to 4.39.3

Bumps github/codeql-action/autobuild from 4.39.2 to 4.39.3.


updated-dependencies:

  • dependency-name: github/codeql-action/autobuild
    dependency-version: 4.39.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

Duplicate of this bug: 2094422

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.

Assignee: nobody → cdenizet

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).

Status: NEW → RESOLVED
Closed: 12 days ago
Duplicate of bug: 2094901
Resolution: --- → DUPLICATE
Attachment #9685830 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: