100 Commits
Author SHA1 Message Date
Tim van der Meij 2581d8f70a Merge pull request #22065 from Snuffleupagus/ChunkedStreamManager-Set-direct-delete
Directly call `Set.prototype.delete` in the `ChunkedStreamManager` code
2026-10-03 19:35:05 +02:00
Tim van der Meij 7445074a76 Merge pull request #22046 from calixteman/rgb-to-rgba-alignment
Fix a few edge cases when converting RGB images in `convertRGBToRGBA` and `ImageResizer`
2026-10-03 19:09:12 +02:00
Tim van der Meij 36692033e1 Merge pull request #22066 from timvandermeij/bump
Bump the stable version in `pdfjs.config`
2026-10-03 19:00:28 +02:00
Tim van der Meij f40ca42ca7 Bump the stable version in pdfjs.config 2026-10-03 18:44:55 +02:00
Tim van der Meij d0991a0d53 Merge pull request #22064 from Snuffleupagus/_requestChunks-avoid-pointless-requestId
Avoid creating a pointless `requestId` in the `ChunkedStreamManager.prototype._requestChunks` method
2026-10-03 17:49:02 +02:00
Tim van der Meij d7e710169d Merge pull request #22062 from timvandermeij/updates
Update dependencies to the most recent versions
2026-10-03 17:46:33 +02:00
Tim van der Meij d03359cb57 Merge pull request #22061 from Snuffleupagus/SupportedImageMimeTypes-Set
Convert `SupportedImageMimeTypes` into a Set
2026-10-03 16:47:25 +02:00
Tim van der Meij 76f6eb6356 Fix vulnerability in the fast-uri dependency
This patch is automatically generated with `npm audit fix` and fixes
CVE-2026-86472.
2026-10-03 16:33:26 +02:00
Tim van der Meij e987c74cd6 Upgrade eslint-plugin-unicorn to version 77.0.0
This is a major version bump, but the changelog at
https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v77.0.0
doesn't indicate any breaking changes that should impact us.

Note that it does require a number of code changes due to improvements
that were made for the `unicorn/prefer-logical-operator-over-ternary`
(allowing us to remove previously added ignore lines; see
https://github.com/sindresorhus/eslint-plugin-unicorn/issues/3766)
and `unicorn/prefer-ternary` (to detect a new case) rules.
2026-10-03 16:27:45 +02:00
Tim van der Meij bf5f6ea4b1 Upgrade eslint-plugin-jsdoc to version 65.0.2
This is a major version bump, but the changelogs at
https://github.com/gajus/eslint-plugin-jsdoc/releases
don't indicate any breaking changes that should impact us.
2026-10-03 16:27:44 +02:00
Tim van der Meij 7dc3cf0421 Update dependencies to the most recent versions 2026-10-03 16:27:44 +02:00
Tim van der Meij c1c20f6d56 Merge pull request #22060 from Snuffleupagus/FontInfo-rm-numbers
Stop exporting the Font `ascent` and `descent` by default, and remove handling of standalone number entries in the compiled font-info
2026-10-03 16:04:12 +02:00
Tim van der Meij 87a106c034 Merge pull request #22059 from Snuffleupagus/FontInfo-rm-extra
Stop passing `extra` properties to the `FontInfo` class
2026-10-03 12:51:53 +02:00
Tim van der Meij b5809f83d6 Merge pull request #22057 from Snuffleupagus/rm-name-export
Stop exporting the Font `name` by default
2026-10-03 12:51:11 +02:00
Tim van der Meij c7e2fe4d29 Merge pull request #22012 from calixteman/tiling-pattern-tiny-steps-dos
Bound tiling pattern folding work for tiny steps
2026-10-02 15:31:33 +02:00
Tim van der Meij 8496056b9a Merge pull request #22056 from Snuffleupagus/charCodeToGlyphId-cidToGidMap-skip-has
Directly lookup entries in the `cidToGidMap` when building the `charCodeToGlyphId` map, for embedded composite fonts
2026-10-02 15:26:48 +02:00
Tim van der Meij 20b2e11213 Merge pull request #22038 from Snuffleupagus/rm-mimetype-export
Stop exporting the Font `mimetype` property
2026-10-02 15:12:44 +02:00
Tim van der Meij 0f116c95da Merge pull request #22033 from mozilla/dependabot/github_actions/github/codeql-action/init-4.38.1
Bump github/codeql-action/init from 4.38.0 to 4.38.1
2026-10-02 15:10:12 +02:00
Tim van der Meij f576c25bcd Merge pull request #22032 from mozilla/dependabot/github_actions/github/codeql-action/autobuild-4.38.1
Bump github/codeql-action/autobuild from 4.38.0 to 4.38.1
2026-10-02 15:09:47 +02:00
Tim van der Meij fecddae585 Merge pull request #22030 from mozilla/dependabot/github_actions/github/codeql-action/analyze-4.38.1
Bump github/codeql-action/analyze from 4.38.0 to 4.38.1
2026-10-02 15:09:17 +02:00
Tim van der Meij 637ed4cfe3 Merge pull request #22031 from mozilla/dependabot/github_actions/codecov/codecov-action-7.1.1
Bump codecov/codecov-action from 7.1.0 to 7.1.1
2026-10-02 14:53:14 +02:00
Tim van der Meij 5baa62329e Merge pull request #22054 from mozilla/dependabot/npm_and_yarn/multi-581aeff57e
Bump brace-expansion
2026-10-02 14:50:44 +02:00
Tim van der Meij fe0e9afdb1 Merge pull request #22053 from mozilla/dependabot/npm_and_yarn/undici-7.30.0
Bump undici from 7.29.0 to 7.30.0
2026-10-02 14:45:47 +02:00
Tim van der Meij 90448db27e Merge pull request #22055 from mozilla/dependabot/npm_and_yarn/markdown-it-14.3.2
Bump markdown-it from 14.2.0 to 14.3.2
2026-10-02 14:45:15 +02:00
Tim van der Meij b9d5e4f96c Merge pull request #22000 from calixteman/fix-render-page-reorg
Route worker messages using stable page IDs
2026-09-22 21:15:52 +02:00
Tim van der Meij 1d9fc56183 Merge pull request #21994 from timvandermeij/eslint-rule-unicorn-prefer-short-arrow-method
Enable the `unicorn/prefer-short-arrow-method` linting rule
2026-09-22 20:50:48 +02:00
Tim van der Meij f8364cdd9d Merge pull request #21993 from timvandermeij/eslint-rule-unicorn-prefer-smaller-scope
Enable the `unicorn/prefer-smaller-scope` linting rule
2026-09-22 20:50:31 +02:00
Tim van der Meij 9aa9e980a1 Merge pull request #22003 from Snuffleupagus/PatternInfo-rm-Array-from
Remove unnecessary Array copying in the `PatternInfo` class (PR 20340 follow-up)
2026-09-22 20:40:27 +02:00
Tim van der Meij e61e379a1b Merge pull request #21995 from calixteman/dedicated-browser-protocol-timeout
Increase the browser protocol timeout
2026-09-22 20:37:19 +02:00
Tim van der Meij 89297de709 Merge pull request #22008 from Snuffleupagus/rm-redundant-loop-vars
Remove some redundant loop variables
2026-09-22 20:18:36 +02:00
Tim van der Meij 7ba4589a47 Enable the unicorn/prefer-short-arrow-method linting rule
This makes the code a bit more compact, and consistent with newer code
where we already use this. For more information about the rule, see
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-short-arrow-method.md.
2026-09-22 20:16:39 +02:00
Tim van der Meij 26b3e4784b Enable the unicorn/prefer-smaller-scope linting rule
This declares variables as close as possible to where they are actually
used, limiting access/lifetime. For more information about the rule, see
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-smaller-scope.md.
2026-09-22 20:15:08 +02:00
Tim van der Meij 0868fbe4da Merge pull request #21992 from timvandermeij/eslint-rule-unicorn-prefer-set-methods
Enable the `unicorn/prefer-set-methods` linting rule
2026-09-22 20:13:06 +02:00
Tim van der Meij b21687326c Merge pull request #22007 from mozilla/dependabot/github_actions/github/codeql-action/init-4.38.0
Bump github/codeql-action/init from 4.37.9 to 4.38.0
2026-09-22 20:12:29 +02:00
Tim van der Meij 334751c468 Merge pull request #22005 from mozilla/dependabot/github_actions/github/codeql-action/autobuild-4.38.0
Bump github/codeql-action/autobuild from 4.37.9 to 4.38.0
2026-09-22 20:12:18 +02:00
Tim van der Meij 60fbe17697 Merge pull request #22004 from mozilla/dependabot/github_actions/github/codeql-action/analyze-4.38.0
Bump github/codeql-action/analyze from 4.37.9 to 4.38.0
2026-09-22 20:12:05 +02:00
Tim van der Meij 0d94b348f2 Merge pull request #22006 from mozilla/dependabot/github_actions/codecov/codecov-action-7.1.0
Bump codecov/codecov-action from 7.0.0 to 7.1.0
2026-09-22 20:08:41 +02:00
Tim van der Meij 38c4ffc0ac Enable the unicorn/prefer-set-methods linting rule
This makes the intent of the code a bit clearer by expressing set
relationships more explicitly. For more information about the rule, see
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-methods.md.
2026-09-20 16:06:17 +02:00
Tim van der Meij b7338b8dd4 Merge pull request #21990 from timvandermeij/eslint-rule
Enable the `unicorn/prefer-combined-guards` linting rule
2026-09-20 15:22:21 +02:00
Tim van der Meij accd78d0e4 Enable the unicorn/prefer-combined-guards linting rule
This reduces the number of branches in the code, and thereby the number
of lines of code, which ever so slightly improves readability.
2026-09-20 14:27:44 +02:00
Tim van der Meij ccd820e124 Merge pull request #21989 from calixteman/cmap-range-budget
Limit cumulative CMap range entries
2026-09-20 12:49:11 +02:00
Tim van der Meij 825525a525 Merge pull request #21988 from Snuffleupagus/Worker-rm-test-msg
[api-minor] Stop sending a separate "test" message during Worker loading
2026-09-20 12:46:00 +02:00
Tim van der Meij 13a77ecebd Merge pull request #21986 from timvandermeij/updates
Update dependencies to the most recent versions
2026-09-20 12:44:04 +02:00
Tim van der Meij b655985b1d Upgrade eslint-plugin-unicorn to version 76.0.0
This is a major version bump, but the changelog at
https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v75.0.0 and
https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v76.0.0
doesn't indicate any breaking changes that should impact us.

Note that it does require a number of code changes due to improvements
that were made for the `unicorn/prefer-logical-operator-over-ternary`
and `unicorn/prefer-ternary` rules to detect more cases.
2026-09-19 19:17:01 +02:00
Tim van der Meij a6434ddf4a Update dependencies to the most recent versions 2026-09-19 19:17:01 +02:00
Tim van der Meij 545f520c91 Merge pull request #21987 from calixteman/xref-stream-zero-widths
Tighten xref stream field-width validation
2026-09-19 19:16:16 +02:00
Tim van der Meij 37fc214557 Merge pull request #21985 from Snuffleupagus/toFontChar-Map
Convert the `toFontChar` Array, in the `Font` class, into a Map
2026-09-19 15:46:15 +02:00
Tim van der Meij 356109b295 Merge pull request #21984 from Snuffleupagus/differences-Map
Convert the `Differences` Array, used with non-composite fonts, into a Map
2026-09-19 13:00:33 +02:00
Tim van der Meij 4dc3c5ccbe Merge pull request #21982 from calixteman/settle-before-focus
Settle editor focus before `page.focus` in integration tests
2026-09-19 12:57:47 +02:00
Tim van der Meij 4c368a809c Merge pull request #21981 from calixteman/features-notification-startup-perf
Defer the Firefox features notification until after first-page rendering (bug 2072145)
2026-09-19 12:56:22 +02:00
Tim van der Meij 02d11cfee5 Merge pull request #21980 from calixteman/update_jbig2_build
Update JBIG2 decoder to pdfium@bb1f9f71
2026-09-19 12:51:58 +02:00
Tim van der Meij ba667924f6 Merge pull request #21944 from calixteman/restart-wedged-browser
Recover from browser startup and reload failures
2026-09-17 20:47:31 +02:00
Tim van der Meij 51fc21d1f8 Merge pull request #21977 from calixteman/media-content-type-validation
Validate embedded media content types
2026-09-17 20:21:05 +02:00
Tim van der Meij dbffae438f Merge pull request #21976 from Snuffleupagus/compileFontInfo-writeArray
Add a helper function for writing array-data in `compileFontInfo`
2026-09-17 20:08:46 +02:00
Tim van der Meij b3dbe21b81 Merge pull request #21973 from Snuffleupagus/CFFParser-tests-rm-createWithNullProto
Remove the `createWithNullProto` helper from the `CFFParser` unit-tests
2026-09-17 20:03:25 +02:00
Tim van der Meij 58550d5b43 Merge pull request #21962 from calixteman/integration-tests-hidpi
Fix two FreeText integration tests when running headed on a HiDPI screen
2026-09-15 20:28:36 +02:00
Tim van der Meij 36ef10fb3f Merge pull request #21961 from Snuffleupagus/charCodeToGlyphId-Map
Convert `charCodeToGlyphId`, used in various font-code, into a Map
2026-09-15 20:26:27 +02:00
Tim van der Meij 5d7f2ba0f3 Merge pull request #21953 from timvandermeij/waitForTextToBe-all
Use the `waitForTextToBe` helper function in the remaining integration tests
2026-09-13 21:35:44 +02:00
Tim van der Meij 6ac790b1d9 Use the waitForTextToBe helper function in the remaining integration tests
This reduces the amount of code needed for the checks, and thereby makes
the intent of the assertions clearer. This completes the work started in
commits 6a53a8d and 8a02497.
2026-09-13 20:58:54 +02:00
Tim van der Meij a15ab24909 Merge pull request #21951 from timvandermeij/waitForTextToBe-viewer-alert
Use the `waitForTextToBe` helper function in the editor alert bar integration tests
2026-09-13 16:40:08 +02:00
Tim van der Meij 8a024979f8 Use the waitForTextToBe helper function in the editor alert bar integration tests
This reduces the amount of code needed for the checks, and thereby makes
the intent of the assertions clearer.
2026-09-13 15:47:00 +02:00
Tim van der Meij 15c9dc87f9 Merge pull request #21950 from Snuffleupagus/FontLoader-isFontLoadingAPISupported-refactor
Re-factor the `FontLoader.prototype.isFontLoadingAPISupported` getter
2026-09-13 14:51:58 +02:00
Tim van der Meij b247146580 Merge pull request #21949 from timvandermeij/waitForTextToBe-undo
Use the `waitForTextToBe` helper function in the editor undo bar integration tests
2026-09-13 14:31:20 +02:00
Tim van der Meij 6a53a8d3ee Use the waitForTextToBe helper function in the editor undo bar integration tests
This reduces the amount of code needed for the checks, and thereby makes
the intent of the assertions clearer.

Note that, thanks to the FSI/PDI constants, we can now also compare the
strings directly instead of having to do a manual replacement for the
case where more than one annotation is removed.
2026-09-13 13:55:40 +02:00
Tim van der Meij c0a774ee67 Merge pull request #21947 from Snuffleupagus/FontFaceObject-getPathGenerator-Map
Change the `FontFaceObject.prototype.getPathGenerator` cache into a Map
2026-09-13 13:03:06 +02:00
Tim van der Meij 94b6d219e5 Merge pull request #21943 from timvandermeij/waitForTooltipToBe
Use the `waitForTooltipToBe` helper function in the annotation integration tests
2026-09-12 19:31:54 +02:00
Tim van der Meij 8705f1d7ff Use the waitForTooltipToBe helper function in the annotation integration tests
This shortens and clarifies the intent of the code a little bit, and
makes sure that we consistently use the helper function across the
codebase instead of checking the `title` attribute inline, which helps
to prevent intermittent failures.
2026-09-12 18:58:20 +02:00
Tim van der Meij 4419371958 Merge pull request #21941 from Snuffleupagus/PDFDocumentProperties-fix-tests
Fix intermittent failures in the `PDFDocumentProperties` tests (PR 21938 follow-up)
2026-09-12 18:34:28 +02:00
Tim van der Meij 0a44d6d74b Merge pull request #21940 from timvandermeij/updates
Update dependencies to the most recent versions
2026-09-12 18:32:29 +02:00
Tim van der Meij 2887ad3cef Update dependencies to the most recent versions
Note that ESLint 10.10.0's `new-cap` rule became a bit stricter in
https://github.com/eslint/eslint/commit/c6cc6c592f30901345d94ef75e0d42c1894fae6c
and now flags `new {this,<variable>}.prototype.constructor()` usage, so
we exclude this pattern in `eslint.config.mjs` since we intend to use
it like this.
2026-09-12 16:21:41 +02:00
Tim van der Meij d088f4d02f Merge pull request #21937 from Snuffleupagus/Node-unit-test-workerSrc
Run the "gets current workerSrc" unit-test in Node.js (PR 17055 follow-up)
2026-09-12 12:10:27 +02:00
Tim van der Meij 4ae29fecd3 Merge pull request #21926 from Snuffleupagus/more-WORKER_THREAD-checks
Stub out `OptionalContentConfig`, `FontLoader`, and `FontFaceObject` code when building for workers
2026-09-11 20:39:41 +02:00
Tim van der Meij fad27f7cae Merge pull request #21925 from calixteman/makeref_badge
Add a badge showing whether the reference images are up to date
2026-09-11 20:35:01 +02:00
Tim van der Meij dfd1537f3c Merge pull request #21916 from calixteman/cmap-usecmap-test
Add unit tests checking that a CMap's own mappings take precedence over usecmap ones
2026-09-11 20:32:20 +02:00
Tim van der Meij 780db41729 Merge pull request #21919 from mozilla/dependabot/npm_and_yarn/multi-c5ebbb4833
Bump js-yaml
2026-09-11 20:19:43 +02:00
Tim van der Meij a99582447e Merge pull request #21933 from mozilla/update-locales
l10n: Update locale files
2026-09-11 20:19:11 +02:00
Tim van der Meij 248bdcc235 Merge pull request #21913 from calixteman/settle-editor-before-input
Wait for editor focus before integration test input
2026-09-08 21:47:50 +02:00
Tim van der Meij 0ad193a01d Merge pull request #21903 from calixteman/fix_transfer_maps
Don't crash when a transfer function array contains /Identity entries
2026-09-08 20:33:05 +02:00
Tim van der Meij 7089078898 Merge pull request #21902 from calixteman/fix-intermittent-chrome
Fix few intermittents in integration tests with Chrome
2026-09-08 20:27:31 +02:00
Tim van der Meij 3a3945e547 Merge pull request #21906 from mozilla/dependabot/github_actions/github/codeql-action/autobuild-4.37.9
Bump github/codeql-action/autobuild from 4.37.8 to 4.37.9
2026-09-08 20:25:35 +02:00
Tim van der Meij f57063bc6d Merge pull request #21907 from mozilla/dependabot/github_actions/github/codeql-action/init-4.37.9
Bump github/codeql-action/init from 4.37.8 to 4.37.9
2026-09-08 20:25:25 +02:00
Tim van der Meij 4aa7172353 Merge pull request #21909 from mozilla/dependabot/github_actions/github/codeql-action/analyze-4.37.9
Bump github/codeql-action/analyze from 4.37.8 to 4.37.9
2026-09-08 20:25:14 +02:00
Tim van der Meij f3bb45c7c3 Merge pull request #21901 from calixteman/issue21899
Keep editing disabled when switching documents
2026-09-08 20:24:27 +02:00
Tim van der Meij 91e7538a2f Merge pull request #21908 from mozilla/dependabot/github_actions/actions/deploy-pages-5.0.1
Bump actions/deploy-pages from 5.0.0 to 5.0.1
2026-09-08 20:22:34 +02:00
Tim van der Meij 4c6025719e Merge pull request #21897 from calixteman/fix-integration-test-flakes
Fix comment tooltip and highlight test races
2026-09-06 20:49:13 +02:00
Tim van der Meij 8e655bd688 Merge pull request #21889 from calixteman/bug2069428
Avoid a CPU DoS when auto-sizing text fields (bug 2069428)
2026-09-06 20:43:43 +02:00
Tim van der Meij 5fa5545b9e Merge pull request #21872 from calixteman/tounicode_unencoded_type1
Keep the ToUnicode mapping of unencoded glyphs in non-embedded Type1 fonts
2026-09-06 20:12:04 +02:00
Tim van der Meij 0cc89f30fc Merge pull request #21886 from diogotcorreia/fix-quadding-acroforms
Fix TextWidgetAnnotation not inheriting text alignment from AcroForm
2026-09-06 20:10:39 +02:00
Tim van der Meij 94256acb3f Merge pull request #21896 from calixteman/rm-pngjs
Use `@napi-rs/canvas` for PNG decoding in integration tests
2026-09-06 20:06:45 +02:00
Tim van der Meij 351c4d74ce Merge pull request #21895 from calixteman/kleur-to-styletext
Replace `kleur` with `util.styleText`
2026-09-06 19:29:46 +02:00
Tim van der Meij 7a48a786a8 Merge pull request #21894 from calixteman/rm-babel-runtime
Remove the unused `@babel/runtime` dependency
2026-09-06 19:27:37 +02:00
Tim van der Meij 9084236c5b Merge pull request #21892 from calixteman/fix_editor_focus_race
Wait for the deferred focus changes in the editor integration tests
2026-09-06 19:24:37 +02:00
Tim van der Meij a9d7a69094 Merge pull request #21888 from Snuffleupagus/primitives-Maps
Convert the `CmdCache`, `NameCache`, and `RefCache` to use Maps
2026-09-06 19:19:44 +02:00
Tim van der Meij 924272504a Merge pull request #21883 from Snuffleupagus/MessageHandler-modernize
Modernize the `MessageHandler` class
2026-09-06 19:16:51 +02:00
Tim van der Meij 65cdb00af0 Merge pull request #21884 from Snuffleupagus/seacs-Map
Convert the font `seacMap` and `seacs` structures into Maps
2026-09-06 19:12:19 +02:00
Tim van der Meij 5b20b7b78e Merge pull request #21879 from Snuffleupagus/callback-arrow-fn
Replace simple callback functions with arrow functions
2026-09-03 21:00:32 +02:00
Tim van der Meij 968acc3f6e Merge pull request #21874 from calixteman/moz_message_bar
Use moz-message-bar for the Firefox features notification (bug 2057608)
2026-09-03 20:57:42 +02:00
Tim van der Meij e64be2624d Merge pull request #21871 from calixteman/fix_views_manager_header
Fix the vertical alignment of the views manager header
2026-09-03 20:53:19 +02:00
Tim van der Meij 7c95662651 Merge pull request #21880 from calixteman/fix_rotated_tiling_pattern
Fix the fill area computation for a rotated tiling pattern
2026-09-03 20:51:37 +02:00
Tim van der Meij 243e313d68 Merge pull request #21854 from calixteman/zizmor
Address the high-severity zizmor findings
2026-09-03 20:49:01 +02:00