Closed Bug 2073780 Opened 2 months ago Closed 2 months ago

Update PDF.js to new version 356109b29522416b49bb5f9e06a66588163631ef from 2026-09-19 11:00:33

Categories

(Firefox :: PDF Viewer, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: update-bot, Assigned: calixte)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 external file)

This update covers 6 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 | 12 +-
toolkit/components/pdfjs/content/build/pdf.scripting.mjs | 4 +-
toolkit/components/pdfjs/content/build/pdf.worker.mjs | 191 ++++-----
toolkit/components/pdfjs/content/web/viewer-geckoview.mjs | 14 +-
toolkit/components/pdfjs/content/web/viewer.css | 1 +
toolkit/components/pdfjs/content/web/viewer.html | 9 +-
toolkit/components/pdfjs/content/web/viewer.mjs | 73 ++-
toolkit/components/pdfjs/content/web/wasm/jbig2.wasm | Bin
toolkit/components/pdfjs/content/web/wasm/jbig2_nowasm_fallback.js | 16 +-
toolkit/components/pdfjs/moz.yaml | 4 +-
11 files changed, 161 insertions(+), 165 deletions(-)


394813a902ec1178408db4677497e5a6e20d7731 by Jonas Jenwald <jonas.jenwald@gmail.com>

https://github.com/mozilla/pdf.js/commit/394813a902ec1178408db4677497e5a6e20d7731
Authored: 2026-09-19 10:15:10 +0200
Committed: 2026-09-19 10:33:15 +0200

Convert the Differences Array, used with non-composite fonts, into a Map

In practice the Differences-data is a more or less sparse Array[1], which means that a Map seems like a more appropriate data-structure.


[1] Even in the tracemonkey.pdf document it's at most 254 entries, out of the maximum 256 ones, but with most of the fonts having considerably fewer entries.

Files Modified:

  • src/core/evaluator.js
  • src/core/fonts.js
  • src/core/fonts_utils.js

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

https://github.com/mozilla/pdf.js/commit/c3a2798726365a6a36f7dd78bcaa51dc298395f6
Authored: 2026-09-18 18:02:11 +0200
Committed: 2026-09-18 22:19:18 +0200

Update JBIG2 decoder to pdfium@bb1f9f71

Files Added:

  • external/builder/fixtures_babel/instantiatewasm-expected.js
  • external/builder/fixtures_babel/instantiatewasm.js

Files Modified:

  • external/builder/babel-plugin-pdfjs-preprocessor.mjs
  • external/jbig2/jbig2.js
  • external/jbig2/jbig2.wasm
  • external/jbig2/jbig2_nowasm_fallback.js

540e63c3d958b054d8e67831e8c8bc1c98935c28 by Calixte Denizet <calixte.denizet@gmail.com>

https://github.com/mozilla/pdf.js/commit/540e63c3d958b054d8e67831e8c8bc1c98935c28
Authored: 2026-09-18 20:33:30 +0200
Committed: 2026-09-18 22:08:05 +0200

Settle editor focus before page.focus in integration tests

Deleting an editor that contains focus schedules a zero-delay focus of the
main container. This can override a later page.focus() before a key press.

Wrap page.focus so deferred editor updates settle first.

Files Modified:

  • test/integration/test_utils.mjs

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

https://github.com/mozilla/pdf.js/commit/c989d4b6e9c0e4e63d55b5f9a65466fe6cd469a8
Authored: 2026-09-18 16:01:10 +0200
Committed: 2026-09-18 17:16:10 +0200

Defer the Firefox features notification until after first-page rendering (bug 2072145)

The notification loaded moz-message-bar and its dependencies during
viewer startup. Updating --pfn-bar-height also animated
#viewerContainer's block-start offset because its transition covered all
properties.

Load and localize the notification after the first pagerendered event,
moving this work past pdfpaint's first-page timestamp. Limit the viewer
transition to inset-inline-start, and let the viewer start if
document.l10n.ready rejects in automation.

Files Modified:

  • web/app.js
  • web/firefoxcom.js
  • web/viewer.css
  • web/viewer.html

32524fe8030e202d2b524951f626270e38ad9042 by github-actions[bot] <github-actions[bot]@users.noreply.github.com>

https://github.com/mozilla/pdf.js/commit/32524fe8030e202d2b524951f626270e38ad9042
Authored: 2026-09-18 00:32:05 +0000
Committed: 2026-09-18 00:32:05 +0000

l10n: Update locale files

Files Modified:

  • l10n/es-ES/viewer.ftl
  • l10n/ja/viewer.ftl
  • l10n/ko/viewer.ftl
  • l10n/lv/viewer.ftl
  • l10n/pl/viewer.ftl
  • l10n/zh-TW/viewer.ftl

ad9920eb80a9fb047871679c0165972e0b1e19c0 by calixteman <calixte.denizet@gmail.com>

https://github.com/mozilla/pdf.js/commit/ad9920eb80a9fb047871679c0165972e0b1e19c0
Authored: 2026-09-12 19:39:51 +0200
Committed: 2026-09-17 18:20:24 +0200

Recover from browser startup and reload failures

Use the 120-second browser timeout for test-page navigation and protocol calls. Retry browser startup, including page acquisition, up to three times, and initialize failed sessions before closing them.

Limit browser.close() to 15 seconds and kill the process if it remains alive. If a timed-out reftest page cannot be reloaded, try up to three replacement browsers.

Register all sessions before launch so completion waits for pending startups.

Files Modified:

  • test/test.mjs

Duplicate of this bug: 2073469
Assignee: nobody → update-bot
Status: NEW → ASSIGNED

The try push is done, we found jobs with unclassified failures.

Needs Close Investigation:

  • toolkit/components/pdfjs/test/browser_pdfjs_features_notification.js

    • 15 of 15 failed on different tasks
      - test-linux2404-64/opt-mochitest-browser-chrome-no-nv (FbKdmXlmQ3mDsOaV5zRMpw)
      - test-windows11-64-25h2/opt-mochitest-browser-chrome-standalone (K2UuiZVoSfyfRPZSY5znKw)
      - test-windows11-64-25h2/opt-mochitest-browser-chrome-no-nv (PK0lfNFiRuK5LTfPx2wDLg)
      - test-windows11-64-25h2/debug-mochitest-browser-chrome-msix (HaBk3T41S7ez_L0ysSOlNA)
      - test-linux2404-64/opt-mochitest-browser-chrome-swr-a11y-checks (JxOVRzprSqa2hGq8sTvw8A)
      - test-linux2404-64/opt-mochitest-browser-chrome-standalone (CkwAlL6XTZuImkj9bS-44w)
      - test-windows11-32-25h2/opt-mochitest-browser-chrome (L9QC34FGRv2pP08vA63ygw)
      - test-linux2404-64/opt-mochitest-browser-chrome-swr (L5f0ZgghRUqqFlG7ADVNxw)
      - test-windows11-64-25h2/opt-mochitest-browser-chrome-msix (BRcZDHstRs66psFJYlrgJQ)
      - test-windows11-64-25h2/debug-mochitest-browser-chrome (BE00MiPjTgyX8zdISRE9Jg)
      - test-windows11-32-25h2/debug-mochitest-browser-chrome (W0cK0l61QbabEZk94fg0FA)
      - test-linux2404-64/debug-mochitest-browser-chrome-swr (Dt5QhD5tT_6sdbXNXsTw_A)
      - test-windows11-64-25h2/opt-mochitest-browser-chrome (Xr8N0Vm4R4Wr-GMLuj141Q)
      - test-linux2404-64/debug-mochitest-browser-chrome-standalone (ClU-3IefQxmbyiJtYl_WDA)
      - test-windows11-64-25h2/debug-mochitest-browser-chrome-standalone (aBzPGayYQhK_oh0mi-t0HA)
  • toolkit/components/pdfjs/test/browser_pdfjs_features_notification_sync.js

    • 4 of 4 failed on different tasks
      - test-windows11-64-25h2/opt-mochitest-browser-chrome-standalone (K2UuiZVoSfyfRPZSY5znKw)
      - test-linux2404-64/opt-mochitest-browser-chrome-standalone (CkwAlL6XTZuImkj9bS-44w)
      - test-linux2404-64/debug-mochitest-browser-chrome-standalone (ClU-3IefQxmbyiJtYl_WDA)
      - test-windows11-64-25h2/debug-mochitest-browser-chrome-standalone (aBzPGayYQhK_oh0mi-t0HA)

These failures could mean that the library update changed something and caused
tests to fail. You'll need to review them yourself and decide where to go from here.

In either event, I have done all I can and you will need to take it from here. If you
don't want to land my patch, you can replicate it locally for editing with
./mach vendor toolkit/components/pdfjs/moz.yaml

When reviewing, please note that this is external code, which needs a full and
careful inspection - not a rubberstamp.

Assignee: update-bot → cdenizet
Flags: needinfo?(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: ASSIGNED → RESOLVED
Closed: 2 months ago
Duplicate of bug: 2073817
Resolution: --- → DUPLICATE

Updatebot encountered an error while trying to abandon the phabricator patch 327586.
Updatebot will be unable to do anything more for this library version.

Pushed by cdenizet@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6382d2987271 https://hg.mozilla.org/integration/autoland/rev/ed3d03c776ec Update PDF.js to 356109b29522416b49bb5f9e06a66588163631ef r=pdfjs-reviewers,marco
No longer duplicate of bug: 2073817
Flags: needinfo?(cdenizet)
Resolution: DUPLICATE → FIXED
Target Milestone: --- → 158 Branch
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: