Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2310 commits
Select commit Hold shift + click to select a range
4806d82
Merge pull request #21695 from martinthomson/open-instructions
Snuffleupagus Aug 4, 2026
1e2c571
Shorten the `Menu` constructor a tiny bit
Snuffleupagus Aug 4, 2026
39b9738
Bump undici from 7.28.0 to 7.29.0
dependabot[bot] Aug 4, 2026
aff4b45
Bump github/codeql-action/autobuild from 4.37.2 to 4.37.3
dependabot[bot] Aug 4, 2026
93441b8
Bump github/codeql-action/init from 4.37.2 to 4.37.3
dependabot[bot] Aug 4, 2026
8f7f98e
Bump github/codeql-action/analyze from 4.37.2 to 4.37.3
dependabot[bot] Aug 4, 2026
12cde32
Add integration tests for the Home/End keys in the `Menu` class
calixteman Aug 4, 2026
e57a464
Merge pull request #21706 from calixteman/test-menu-first-last
calixteman Aug 4, 2026
bf7c925
Give copied annotations distinct references
calixteman Jul 13, 2026
fc01f7d
Enable the `regexp/no-super-linear-move` ESLint rule
calixteman Aug 4, 2026
16f5691
Remove the ambiguity from the PostScript number regex
calixteman Aug 4, 2026
ba02df4
Merge pull request #21701 from mozilla/dependabot/npm_and_yarn/undici…
timvandermeij Aug 4, 2026
cc1e80c
Merge pull request #21705 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 4, 2026
1e824bd
Merge pull request #21704 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 4, 2026
31bf4a0
Bump fast-uri from 3.1.4 to 3.1.5
dependabot[bot] Aug 4, 2026
2774488
Merge pull request #21703 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 4, 2026
b75d2b6
Merge pull request #21700 from Snuffleupagus/Menu-constructor-shorten
timvandermeij Aug 4, 2026
724950b
Merge pull request #21708 from calixteman/regexp-no-super-linear-move
timvandermeij Aug 4, 2026
7aac9fb
Merge pull request #21712 from mozilla/dependabot/npm_and_yarn/fast-u…
timvandermeij Aug 4, 2026
729ddf9
Merge pull request #21709 from calixteman/postscript-number-regex
timvandermeij Aug 4, 2026
a93bd42
Enable a few more `eslint-plugin-regexp` rules
calixteman Aug 4, 2026
8e3a1fd
Merge pull request #21699 from calixteman/fix/pdf-editor-field-parent…
timvandermeij Aug 4, 2026
5ca8134
Merge pull request #21710 from calixteman/eslint-regexp-rules
calixteman Aug 4, 2026
240bfee
Expose the table structure attributes in the struct tree
calixteman Aug 4, 2026
5f181fd
Merge pull request #21707 from calixteman/fix/pdf-editor-copy-new-ann…
timvandermeij Aug 4, 2026
0f4ec62
Compute the next ParentTree key correctly
calixteman Jul 13, 2026
f1f1782
Add helper methods for populating `dateActionsCache`/`scandCache` in …
Snuffleupagus Aug 1, 2026
59cd456
Cache the entire scand regular expression, in `src/scripting_api/util…
Snuffleupagus Aug 4, 2026
e2df5f4
Handle image-only PDF exports
calixteman Jul 13, 2026
71c5839
Use the `MathClamp` helper in the `src/core/annotation.js` file
Snuffleupagus Aug 5, 2026
3f5b472
Update `PDFViewerApplication._initializeAutoPrint` to handle `getJSAc…
Snuffleupagus Aug 5, 2026
0ac3b88
Don't re-encode the `file` parameter in the viewer
calixteman Aug 5, 2026
74fe316
Convert `TranslatedFont.prototype.loadType3Data` to an asynchronous m…
Snuffleupagus Aug 5, 2026
1f0659e
Merge pull request #21715 from Snuffleupagus/src-core-annotation-Math…
Snuffleupagus Aug 6, 2026
1b4055e
Merge pull request #21716 from Snuffleupagus/_initializeAutoPrint-jsA…
Snuffleupagus Aug 6, 2026
ac5aa27
Move `SCALE_MATRIX` into `CanvasGraphics` and initialize its `DOMMatr…
Snuffleupagus Aug 6, 2026
71a3c6a
Merge pull request #21721 from Snuffleupagus/canvas-SCALE_MATRIX-lazy
Snuffleupagus Aug 6, 2026
f43ce86
Merge pull request #21719 from Snuffleupagus/loadType3Data-async
timvandermeij Aug 6, 2026
93c2ae4
Merge pull request #21718 from calixteman/fix/file-param-encoding
timvandermeij Aug 6, 2026
bb40503
Merge pull request #21681 from Snuffleupagus/scripting-Util-getOrInse…
timvandermeij Aug 6, 2026
7a0e2e7
Merge pull request #21717 from calixteman/fix/pdf-editor-image-only-m…
timvandermeij Aug 6, 2026
d522c39
l10n: Update locale files
github-actions[bot] Aug 7, 2026
e479cda
Merge pull request #21724 from mozilla/update-locales
calixteman Aug 7, 2026
821a741
Merge pull request #21714 from calixteman/fix/pdf-editor-parent-tree-…
calixteman Aug 7, 2026
d73dc99
Track container touches in TouchManager
calixteman Jul 29, 2026
4513916
Improve glyph mapping for non-embedded CID fonts
calixteman Aug 6, 2026
b8a4fbd
Merge pull request #21702 from calixteman/fix/table-structure-attributes
calixteman Aug 7, 2026
b71b798
Change the inline image cache, in the `Parser` class, to a Map
Snuffleupagus Aug 7, 2026
b850454
No longer initialize the dictionary *lazily* when parsing inline images
Snuffleupagus Aug 7, 2026
ff784c7
Merge pull request #21722 from calixteman/touch/fix-foreign-fingers
calixteman Aug 7, 2026
0ccb35c
Merge pull request #21727 from Snuffleupagus/Parser-inlineImage-Map
Snuffleupagus Aug 7, 2026
8001c9d
Remove unnecessary `RefSet.prototype.has` call from `TranslatedFont.p…
Snuffleupagus Aug 7, 2026
1365dbd
Convert the `charProcOperatorList`, used with Type3 fonts, to a Map
Snuffleupagus Aug 7, 2026
1df5a49
Keep pinching when the touch set changes
calixteman Aug 7, 2026
022e958
Merge pull request #21730 from Snuffleupagus/charProcOperatorList-Map
Snuffleupagus Aug 7, 2026
61608c0
Expose more tagged PDF structure roles
calixteman Aug 7, 2026
1603a91
Hide unavailable alt text settings
calixteman Aug 7, 2026
a163deb
Fix the two MathClamp calls the prefer-math-clamp fixer mis-ordered
Jaybhade Aug 7, 2026
ed327b2
Re-name the `RefSetCache` class to `RefMap`
Snuffleupagus Aug 7, 2026
f250d69
[api-minor] Convert `getPermissions` to return data in a Set
Snuffleupagus Aug 8, 2026
92d6f6a
Merge pull request #21738 from Snuffleupagus/getPermissions-Set
timvandermeij Aug 9, 2026
4099f2c
Merge pull request #21726 from calixteman/issue21523
timvandermeij Aug 9, 2026
7b63334
Merge pull request #21737 from Snuffleupagus/RefMap
timvandermeij Aug 9, 2026
1ef137e
Merge pull request #21734 from calixteman/issue21732
timvandermeij Aug 9, 2026
2695272
Merge pull request #21735 from calixteman/issue21667
timvandermeij Aug 9, 2026
99df11c
Merge pull request #21731 from calixteman/touch/fix-returning-fingers
timvandermeij Aug 9, 2026
963bd50
Replace most `toBeTruthy()`/`toBeFalsy()` matchers with more specific…
Snuffleupagus Aug 8, 2026
8ae1b7f
Make the Set-field actually private in the `RefSet` class
Snuffleupagus Aug 7, 2026
edd5242
Make the Map-field actually private in the `RefMap` class
Snuffleupagus Aug 7, 2026
bbd0ba5
Improve ink drawing responsiveness
calixteman Aug 7, 2026
78cf296
Merge pull request #21739 from Snuffleupagus/test-replace-most-toBeTr…
Snuffleupagus Aug 9, 2026
c2bbde1
Merge pull request #21728 from Snuffleupagus/primitives-private
Snuffleupagus Aug 9, 2026
7364bca
Merge pull request #21733 from calixteman/improve-ink-drawing-respons…
calixteman Aug 9, 2026
a611b78
Remove overridden/duplicated `[$getChildren]` methods
Snuffleupagus Aug 8, 2026
7e764c0
Remove unnecessary `rect` modification in the `CanvasGraphics.prototy…
Snuffleupagus Aug 7, 2026
389ddde
Cache the result of `buildSymbolGlyphIdEncoding` (PR 21726 follow-up)
Snuffleupagus Aug 10, 2026
9cedb4e
Ignore degenerate touch spans when scaling
calixteman Aug 10, 2026
1c6cead
Improve some `Array.from()` usage
Snuffleupagus Aug 10, 2026
b82de31
Re-use the `stringToBytes` helper in the `encodeASCIIString` function
Snuffleupagus Aug 10, 2026
8f487ef
[Editor] End active touch gestures on destroy
calixteman Aug 10, 2026
79ccf81
Fix the license text bundled for pdf.js.qcms
calixteman Aug 10, 2026
4315a4b
Fix the license file for the bundled Liberation fonts
calixteman Aug 10, 2026
1296f1e
Merge pull request #21747 from calixteman/fix/qcms-license
calixteman Aug 10, 2026
deefadb
Merge pull request #21750 from calixteman/fix-liberation-license
calixteman Aug 10, 2026
297cf0b
Merge pull request #21740 from Snuffleupagus/buildSymbolGlyphIdEncodi…
timvandermeij Aug 10, 2026
97b45e4
Merge pull request #21742 from Snuffleupagus/more-Array-from-mapFn
timvandermeij Aug 10, 2026
959f1c4
Merge pull request #21743 from Snuffleupagus/encodeASCIIString-use-st…
timvandermeij Aug 10, 2026
1072984
Merge pull request #21744 from calixteman/touch/end-gesture-on-destroy
timvandermeij Aug 10, 2026
fc30259
Merge pull request #21741 from calixteman/touch/no-degenerate-span
timvandermeij Aug 10, 2026
5458a13
Support two-finger panning
calixteman Aug 10, 2026
0f5e541
Fix intermittent thumbnail dragging integration test
calixteman Aug 10, 2026
249084f
Merge pull request #21736 from Snuffleupagus/XFAObject-getChildren
Snuffleupagus Aug 10, 2026
f970b62
Merge pull request #21729 from Snuffleupagus/beginAnnotation-rm-rect-…
Snuffleupagus Aug 10, 2026
416335a
Merge pull request #21751 from calixteman/fix_intermittent_thumbnail_…
timvandermeij Aug 10, 2026
2099072
Fix intermittent pinch-resize integration test
calixteman Aug 11, 2026
4b5ab6a
Enable the `unicorn/no-incorrect-query-selector` ESLint plugin rule
Snuffleupagus Aug 11, 2026
977dee3
Bump github/codeql-action/init from 4.37.3 to 4.37.6
dependabot[bot] Aug 11, 2026
766417f
Bump github/codeql-action/autobuild from 4.37.3 to 4.37.6
dependabot[bot] Aug 11, 2026
9aa13d3
Bump github/codeql-action/analyze from 4.37.3 to 4.37.6
dependabot[bot] Aug 11, 2026
4dbcba2
Fix coalesced-events test at fractional device pixel ratios
calixteman Aug 11, 2026
a6ca0fd
Merge pull request #21754 from Snuffleupagus/eslint-no-incorrect-quer…
Snuffleupagus Aug 11, 2026
16d12b6
Expose PDF alternative text without prohibited ARIA names
calixteman Aug 11, 2026
3697e9d
Merge pull request #21755 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 11, 2026
47dc664
Merge pull request #21756 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 11, 2026
3a9f9ff
Merge pull request #21757 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 11, 2026
9167f70
Merge pull request #21753 from calixteman/fix_intermittent_pinch_resi…
timvandermeij Aug 11, 2026
05b5d63
Merge pull request #21758 from calixteman/fix_coalesced_events_fracti…
timvandermeij Aug 11, 2026
2e609c7
Merge pull request #21759 from calixteman/fix-struct-tree-alt-descrip…
timvandermeij Aug 11, 2026
c8fbf33
Merge pull request #21752 from calixteman/touch/two-finger-pan
timvandermeij Aug 11, 2026
7d71ebd
Let the `StructElementNode.prototype.tableAttributes` getter return a…
Snuffleupagus Aug 12, 2026
4b0ba02
Simplify the `Stepper.prototype.getNextBreakPoint` method
Snuffleupagus Aug 12, 2026
21d901e
Tweak the TR/TR2 check in the `PartialEvaluator.prototype.setGState` …
Snuffleupagus Aug 12, 2026
37da08f
Merge pull request #21764 from Snuffleupagus/setGState-TR-shorten
Snuffleupagus Aug 12, 2026
d63faeb
Avoid spilling xref entries into dynamically allocated slots (bug 206…
calixteman Aug 12, 2026
8593fff
Add a simple integration-test for the "updatedPreference" event
Snuffleupagus Aug 12, 2026
2eda176
Merge pull request #21766 from calixteman/perf/xref-entry-slots
calixteman Aug 12, 2026
a5c1db0
Merge pull request #21767 from Snuffleupagus/updatedPreference-test
Snuffleupagus Aug 12, 2026
5903d58
Update SECURITY.md with reporting guidelines
calixteman Aug 12, 2026
efb912a
Only define the `getRawData` API methods when building INTERNAL_VIEWER
Snuffleupagus Aug 13, 2026
ec8dd81
Remove unnecessary `typeof` check in `Field.prototype.currentValueInd…
Snuffleupagus Aug 13, 2026
ecc97d1
Merge pull request #21772 from Snuffleupagus/api-getRawData-conditional
Snuffleupagus Aug 13, 2026
cfaa6f3
Merge pull request #21774 from Snuffleupagus/currentValueIndices-rm-t…
Snuffleupagus Aug 13, 2026
b50c4cf
Avoid creating a couple of intermediate Arrays
Snuffleupagus Aug 13, 2026
4224f06
Merge pull request #21773 from Snuffleupagus/fewer-intermediate-Arrays
Snuffleupagus Aug 13, 2026
100a542
Use the structure tree to position annotations
calixteman Aug 12, 2026
b688701
Merge pull request #21725 from Jaybhade/fix-math-clamp-operand-order
calixteman Aug 13, 2026
cb5bca2
Merge pull request #21762 from Snuffleupagus/debugger-getNextBreakPoi…
Snuffleupagus Aug 13, 2026
aef18a9
Merge pull request #21761 from Snuffleupagus/StructElementNode-tableA…
Snuffleupagus Aug 13, 2026
ec8a11b
[Editor] Make HighlightEditor extend DrawingEditor
calixteman Aug 11, 2026
3908a20
l10n: Update locale files
github-actions[bot] Aug 14, 2026
dc9c4ee
Merge pull request #21775 from mozilla/update-locales
calixteman Aug 14, 2026
3999112
Merge pull request #21769 from calixteman/highlight/drawing-editor
calixteman Aug 14, 2026
8b0d1b2
Normalize the line ending of test/pdfs/issue9186.pdf.link
calixteman Aug 14, 2026
b96d745
Merge pull request #21776 from calixteman/fix-link-file-eol
calixteman Aug 14, 2026
fd8ed84
Nova-ify the viewer (bug 2063405)
calixteman Aug 13, 2026
263bc08
Shorten some `Array.prototype.map()` callbacks
Snuffleupagus Aug 14, 2026
4c553c2
Add a gulp task for releasing pdf.js in the Firefox git tree
calixteman Aug 14, 2026
ca17005
Merge pull request #21777 from calixteman/firefox_target
calixteman Aug 15, 2026
92b2cd3
Use `Array.prototype.filter(Boolean)` more, when filtering out truthy…
Snuffleupagus Aug 15, 2026
4b274a8
Merge pull request #21780 from Snuffleupagus/shorter-map-callback
timvandermeij Aug 15, 2026
f4a73b3
Merge pull request #21781 from Snuffleupagus/filter-Boolean
timvandermeij Aug 15, 2026
48bb93b
Merge pull request #21779 from calixteman/pdfjs_nova
timvandermeij Aug 15, 2026
5350280
Modernize the `XRefMock` unit-test helper
Snuffleupagus Aug 15, 2026
4192cb3
Merge pull request #21782 from Snuffleupagus/XRefMock-modernize
Snuffleupagus Aug 15, 2026
2cb6d36
Update dependencies to the most recent versions
timvandermeij Aug 15, 2026
25ef610
Improve Firefox watch builds
calixteman Aug 15, 2026
f1bf09f
Upgrade `eslint-plugin-unicorn` to version 73.0.0
timvandermeij Aug 15, 2026
36e27b2
Fix vulnerabilities in dependency versions
timvandermeij Aug 15, 2026
4c5155e
Merge pull request #21768 from calixteman/fix-struct-tree-links
calixteman Aug 15, 2026
32421eb
Merge pull request #21784 from timvandermeij/updates
timvandermeij Aug 15, 2026
3b947e3
Fix flaky hand tool integration test
calixteman Aug 15, 2026
e9c4923
Merge pull request #21783 from calixteman/improve-firefox-watch-builds
timvandermeij Aug 15, 2026
f3cb423
Enable the `unicorn/no-multiple-promise-resolver-calls` linting rule
timvandermeij Aug 15, 2026
6694c0e
Merge pull request #21785 from calixteman/fix-flaky-hand-tool-test
calixteman Aug 15, 2026
d8e5a04
Define the visible-page sort function, used in `getVisibleElements`, …
Snuffleupagus Aug 16, 2026
f3a19bb
Merge pull request #21786 from timvandermeij/eslint-unicorn-rule
timvandermeij Aug 16, 2026
aa90f90
Remove unnecessary `!lzwState` check in `LZWStream.prototype.readBlock`
Snuffleupagus Aug 16, 2026
fc88061
Merge pull request #21787 from Snuffleupagus/visibleSort
timvandermeij Aug 16, 2026
909acb9
Merge pull request #21788 from Snuffleupagus/LZWStream-rm-lzwState-check
Snuffleupagus Aug 16, 2026
c19ff5f
Fix intermittent reorganize pages integration tests
calixteman Aug 15, 2026
ca39f5a
Fix the RTL layout of the views manager header (bug 2060033)
calixteman Aug 16, 2026
13b68c0
Set the direction of the floating toolbar in RTL locales (bug 2060032)
calixteman Aug 16, 2026
3e45a70
Merge pull request #21790 from calixteman/bug2060033
timvandermeij Aug 16, 2026
3238178
Merge pull request #21791 from calixteman/bug2060032
timvandermeij Aug 16, 2026
5b42e12
Merge pull request #21789 from calixteman/fix-reorganize-pages-flaky-…
timvandermeij Aug 16, 2026
ef01d55
Let link annotations own their text
calixteman Aug 12, 2026
40c739b
Use `Uint8Array.fromHex` in the `CFFParser` unit-tests setup
Snuffleupagus Aug 17, 2026
a171260
Merge pull request #21793 from Snuffleupagus/CFFParser-unittest-fromHex
Snuffleupagus Aug 17, 2026
79da643
Merge pull request #21792 from calixteman/fix-struct-tree-link-ownership
timvandermeij Aug 17, 2026
f43d7d5
Fix Firefox-only tests in Chrome CI
calixteman Aug 17, 2026
7e66cd3
Downscale large JPEG images with ImageDecoder (bug 2063570)
calixteman Aug 16, 2026
3e9483f
Merge pull request #21795 from calixteman/fix-ci-firefox-only-integra…
calixteman Aug 18, 2026
6528081
Merge pull request #21794 from calixteman/jpeg-downscale-while-decoding
calixteman Aug 18, 2026
e31de7e
Improve the `watchScroll` helper function a little bit
Snuffleupagus Aug 18, 2026
69551bd
Avoid creating a couple of intermediate Arrays
Snuffleupagus Aug 18, 2026
6e36bc7
Remove unused l10n IDs
calixteman Aug 18, 2026
42250fb
Merge pull request #21798 from calixteman/remove_unused_l10n_ids
calixteman Aug 18, 2026
650c130
Merge pull request #21797 from Snuffleupagus/fewer-intermediate-Arrays-2
Snuffleupagus Aug 18, 2026
c5c7699
Auto-close the marked content sections left open in a text object (bu…
calixteman May 23, 2024
0adc2e7
Merge pull request #21796 from Snuffleupagus/watchScroll-improve
timvandermeij Aug 18, 2026
cbe0e9d
Merge pull request #18151 from calixteman/bug1898053
calixteman Aug 19, 2026
47423d1
Improve `JpegImage.canUseImageDecoder` return value consistency
Snuffleupagus Aug 19, 2026
e67e59a
Merge pull request #21800 from Snuffleupagus/canUseImageDecoder-info
Snuffleupagus Aug 19, 2026
cdba950
Cache the `TextDecoder` instances used by the `stringToPDFString` helper
Snuffleupagus Aug 19, 2026
e051279
Merge pull request #21801 from Snuffleupagus/stringToPDFString-cache-…
Snuffleupagus Aug 19, 2026
e1651fc
Vertically center the text in single-line and comb text fields (bug 2…
calixteman Aug 19, 2026
d4d1a8d
Remove a few unnecessary checks after calling `BaseStream.prototype.g…
Snuffleupagus Aug 20, 2026
ea5ecb0
Cache the `TextDecoder`/`TextEncoder` instances used when compiling/d…
Snuffleupagus Aug 20, 2026
e49fb35
Merge pull request #21804 from Snuffleupagus/rm-getBytes-null-checks
timvandermeij Aug 20, 2026
ca89d41
Merge pull request #21806 from Snuffleupagus/obj-bin-transform-cache-…
timvandermeij Aug 20, 2026
d63ef00
Merge pull request #21802 from calixteman/bug2055455
timvandermeij Aug 20, 2026
5939118
l10n: Update locale files
github-actions[bot] Aug 21, 2026
3cb74c4
Merge pull request #21808 from mozilla/update-locales
calixteman Aug 21, 2026
e05ab5e
Avoid zooming during fast two-finger panning
calixteman Aug 20, 2026
9aea8e2
Merge pull request #21807 from calixteman/touch/no-pinch-while-panning
calixteman Aug 21, 2026
b1511e5
Remove the unused /Decode handling from the `JpegStream`/`JpegImage` …
Snuffleupagus Aug 21, 2026
0f26334
Merge pull request #21809 from Snuffleupagus/JpegImage-limit-decodeTr…
Snuffleupagus Aug 21, 2026
fbf36b6
Modernize the Node.js `getinfo.mjs` example
Snuffleupagus Aug 22, 2026
799a57e
Fix inconsistencies with the `Page.prototype.#replaceIdByRef` method
Snuffleupagus Aug 22, 2026
2c57dec
Re-use `computeLuminance` in the `DOMFilterFactory.prototype.addHCMFi…
Snuffleupagus Aug 22, 2026
3451fc5
Shorten the handling of /A and /a page labels
Snuffleupagus Aug 22, 2026
2ae5995
Remove the unused `key3` parameter from the various `Dict` get-methods
Snuffleupagus Aug 23, 2026
8a3c834
Add a helper method, in the `PartialEvaluator` class, for building a …
Snuffleupagus Aug 23, 2026
4a088f8
Merge pull request #21811 from Snuffleupagus/Node-getinfo-modernize
timvandermeij Aug 23, 2026
fc40892
Merge pull request #21815 from Snuffleupagus/Dict-get-rm-key3
timvandermeij Aug 23, 2026
cd1eaa9
Merge pull request #21812 from Snuffleupagus/deletedAnnotations-RefSet
timvandermeij Aug 23, 2026
08f8f7e
Merge pull request #21816 from Snuffleupagus/PartialEvaluator-createT…
timvandermeij Aug 23, 2026
3b77a80
Merge pull request #21814 from Snuffleupagus/PageLabels-letters
timvandermeij Aug 23, 2026
a570239
Merge pull request #21813 from Snuffleupagus/addHCMFilter-computeLumi…
Snuffleupagus Aug 23, 2026
0228461
Remove the "duplicated" `Page.prototype.createAnnotationEvaluator` me…
Snuffleupagus Aug 24, 2026
9be0233
Use ImageDecoder for JPEG dimension mismatches without resizing (bug …
calixteman Aug 25, 2026
9ad5510
Remove unused /FS branch from the `FileSpec` constructor
Snuffleupagus Aug 25, 2026
8dd03be
Add more unit-tests for the `src/core/primitives.js` file
Snuffleupagus Aug 25, 2026
8cc2985
Bump github/codeql-action/analyze from 4.37.6 to 4.37.7
dependabot[bot] Aug 25, 2026
7b69ce3
Bump github/codeql-action/init from 4.37.6 to 4.37.7
dependabot[bot] Aug 25, 2026
b2c7ec3
Bump github/codeql-action/autobuild from 4.37.6 to 4.37.7
dependabot[bot] Aug 25, 2026
caa4418
Shorten the `Parser.prototype.#hasCryptFilter` method
Snuffleupagus Aug 25, 2026
6b107ff
Merge pull request #21823 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 25, 2026
16acd8f
Merge pull request #21822 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 25, 2026
a0013d2
Merge pull request #21821 from mozilla/dependabot/github_actions/gith…
timvandermeij Aug 25, 2026
e9b8f02
Merge pull request #21824 from Snuffleupagus/Parser-hasCryptFilter-sh…
timvandermeij Aug 25, 2026
5b25f7d
Merge pull request #21819 from Snuffleupagus/FileSpec-rm-FS
timvandermeij Aug 25, 2026
d8ce595
Merge pull request #21817 from Snuffleupagus/rm-Page-createAnnotation…
timvandermeij Aug 25, 2026
2cfbdb5
Merge pull request #21820 from Snuffleupagus/primitives-more-unit-tests
timvandermeij Aug 25, 2026
c1951c8
Merge pull request #21818 from calixteman/jpeg-image-decoder-resize
timvandermeij Aug 25, 2026
7eb5a92
Change `Word64.prototype.shiftRight` to only support `places < 32` (P…
Snuffleupagus Aug 25, 2026
49ff3dc
Merge pull request #21826 from Snuffleupagus/shiftRight-rm-above-32
Snuffleupagus Aug 26, 2026
3918c37
Remove the unused `LocalPdfManager.prototype.requestRange` method
Snuffleupagus Aug 26, 2026
af429da
Remove the unused `BasePdfManager.prototype.ensureXRef` method (PR 20…
Snuffleupagus Aug 26, 2026
3707b66
[api-minor] Convert `documentInfo` to return any "Custom" data in a Map
Snuffleupagus Aug 26, 2026
17f9254
Localize the comment dialog save button through its label span
calixteman Aug 27, 2026
c91f30e
Add a helper function for writing lineTo/curveTo when creating Appear…
Snuffleupagus Aug 27, 2026
9fe9b64
Merge pull request #21831 from Snuffleupagus/Annotation-writeLineToCu…
Snuffleupagus Aug 27, 2026
3065994
Merge pull request #21827 from Snuffleupagus/PdfManager-rm-unused
timvandermeij Aug 27, 2026
2974ee9
Merge pull request #21828 from Snuffleupagus/documentInfo-Custom-Map
timvandermeij Aug 27, 2026
8213fbc
Merge pull request #21830 from calixteman/comment-save-button-l10n
timvandermeij Aug 27, 2026
f4dc88d
l10n: Update locale files
github-actions[bot] Aug 28, 2026
c3257df
Merge pull request #21833 from mozilla/update-locales
calixteman Aug 28, 2026
16b94d1
[api-minor] Convert `markInfo` to return data in a Map
Snuffleupagus Aug 28, 2026
2895922
Improve unit-test coverage for the `getViewerPreferences` functionality
Snuffleupagus Aug 28, 2026
08a0600
Merge pull request #21834 from Snuffleupagus/markInfo-Map
timvandermeij Aug 28, 2026
8801a6a
Merge pull request #21835 from Snuffleupagus/getViewerPreferences-tests
timvandermeij Aug 28, 2026
159dca9
Remove the unused `getOutputLength` method from the `ColorSpace` clas…
Snuffleupagus Aug 28, 2026
d1725ab
Merge pull request #21837 from Snuffleupagus/rm-ColorSpace-getoutputl…
Snuffleupagus Aug 29, 2026
c58a275
Move some `WorkerTask` class field definitions out of the constructor
Snuffleupagus Aug 29, 2026
67c035f
Inline the `PDFDocument.prototype._parseHasJSActions` method
Snuffleupagus Aug 29, 2026
1c8020a
Merge pull request #21841 from Snuffleupagus/src-core-misc-fixes
timvandermeij Aug 29, 2026
cb0f0ca
Merge commit '1c8020a7d4e43668ac287a3ecf9a8dbea17e4c56' into update-v…
ekaterina-chubrick Oct 27, 2026
1e0b675
Update version
ekaterina-chubrick Oct 27, 2026
4fdb368
Fix operators handling
ekaterina-chubrick Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 13 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# Force Unix line endings for most file formats (except binary files)
*.js text eol=lf
*.jsm text eol=lf
*.config text eol=lf
*.css text eol=lf
*.example text eol=lf
*.ftl text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.link text eol=lf
*.md text eol=lf
*.ftl text eol=lf
*.mjs text eol=lf
*.mts text eol=lf
*.njk text eol=lf
*.py text eol=lf
*.svg text eol=lf
*.ts text eol=lf
*.txt text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.config text eol=lf
*.inc text eol=lf
*.manifest text eol=lf
*.rdf text eol=lf
*.jade text eol=lf
*.coffee text eol=lf

# PDF files shall not modify CRLF line endings
*.pdf -crlf

# Linguist language overrides
*.js linguist-language=JavaScript
*.jsm linguist-language=JavaScript
*.inc linguist-language=XML
2 changes: 0 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ The issue tracking system is designed to record a single technical problem. A bu

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.

Note that the translations for PDF.js in the `l10n` folder are imported from the Nightly channel of Mozilla Firefox, such that we don't have to maintain them ourselves. This means that we will not accept pull requests that add new languages and/or modify existing translations, unless the corresponding changes have been made in Mozilla Firefox first.

See also:
- https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions
- https://github.com/mozilla/pdf.js/wiki/Contributing
Expand Down
17 changes: 15 additions & 2 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@ Mozilla takes the security of our software seriously. If you believe you have fo

**Please don't report security vulnerabilities through public GitHub issues.**

Instead, please report security vulnerabilities in [Bugzilla](https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=PDF%20Viewer&groups=firefox-core-security) and make sure that the checkbox in the "Security" section is checked so the required access controls are automatically configured:
Where to report depends on what's affected:

### The PDF.js library or the Firefox PDF Viewer

Report the vulnerability in [Bugzilla](https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=PDF%20Viewer&groups=firefox-core-security)
and make sure that the checkbox in the "Security" section is checked so the required access
controls are automatically configured:

![Security checkbox](https://github.com/mozilla/pdf.js/blob/master/.github/security.png)

The Mozilla security team will process the bug as described in [Mozilla's security bugs policy](https://www.mozilla.org/en-US/about/governance/policies/security-group/bugs).
The Mozilla security team will process the bug as described in
[Mozilla's security bugs policy](https://www.mozilla.org/en-US/about/governance/policies/security-group/bugs).

### The PDF.js Chrome extension

The Chrome extension isn't part of Firefox and isn't tracked in Bugzilla. Report the
vulnerability privately on GitHub, using the
["Report a vulnerability"](https://github.com/mozilla/pdf.js/security/advisories/new) form.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ updates:
interval: "weekly"
labels:
- "dependencies"
cooldown:
default-days: 7
7 changes: 7 additions & 0 deletions .github/fluent_linter_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The requirements below can be regenerated with the following one-liner:
# `python3 -m venv venv; source venv/bin/activate; pip install -q moz-fluent-linter; pip freeze; deactivate; rm -rf venv`
fluent.syntax==0.19.0
moz-fluent-linter==0.4.10
PyYAML==6.0.3
six==1.17.0
typing_extensions==4.16.0
3 changes: 3 additions & 0 deletions .github/font_tests_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# The requirements below can be regenerated with the following one-liner:
# `python3 -m venv venv; source venv/bin/activate; pip install -q fonttools; pip freeze; deactivate; rm -rf venv`
fonttools==4.63.0
1 change: 0 additions & 1 deletion .github/requirements.txt

This file was deleted.

41 changes: 36 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,59 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
environment: code-coverage

strategy:
fail-fast: false
matrix:
node-version: [20, 22, 24]
node-version: [22, 24, 26]

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Restore cached PDF files
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: test/pdfs/*.pdf
key: cached-pdf-files-${{ hashFiles('test/pdfs/*.pdf') }}
restore-keys: |
cached-pdf-files-
enableCrossOsArchive: true

- name: Run external tests
run: npx gulp externaltest

- name: Run CLI unit tests
run: npx gulp unittestcli
- name: Run CLI unit tests with code coverage
run: npx gulp unittestcli --coverage --coverage-output build/coverage/unitcli

- name: Save cached PDF files
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: test/pdfs/*.pdf
key: cached-pdf-files-${{ hashFiles('test/pdfs/*.pdf') }}
enableCrossOsArchive: true

- name: Upload results to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/coverage/unitcli/lcov.info
flags: unittestcli
name: codecov-umbrella
disable_search: true
disable_telem: true
verbose: true
9 changes: 5 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
languages: ${{ matrix.language }}
queries: security-and-quality

- name: Autobuild CodeQL
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
101 changes: 101 additions & 0 deletions .github/workflows/coverage_browser_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Coverage (Browser tests)
on:
push:
paths:
- 'gulpfile.mjs'
- 'external/**'
- 'package-lock.json'
- 'src/**'
- 'test/images/**'
- 'test/pdfs/**'
- 'test/resources/**'
- 'test/*.css'
- 'test/driver.js'
- 'test/test.mjs'
- 'test/test_manifest.json'
- 'test/test_slave.html'
- 'web/**'
- '.github/workflows/coverage_browser_tests.yml'
branches:
- master
pull_request:
paths:
- 'gulpfile.mjs'
- 'external/**'
- 'package-lock.json'
- 'src/**'
- 'test/images/**'
- 'test/pdfs/**'
- 'test/resources/**'
- 'test/*.css'
- 'test/driver.js'
- 'test/test.mjs'
- 'test/test_manifest.json'
- 'test/test_slave.html'
- 'web/**'
- '.github/workflows/coverage_browser_tests.yml'
branches:
- master
workflow_dispatch:
permissions:
contents: read

jobs:
test:
name: ${{ matrix.os }} / firefox

strategy:
fail-fast: false
matrix:
node-version: [lts/*]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
environment: code-coverage

steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Restore cached PDF files
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: test/pdfs/*.pdf
key: cached-pdf-files-${{ hashFiles('test/pdfs/*.pdf') }}
restore-keys: |
cached-pdf-files-
enableCrossOsArchive: true

- name: Run browser tests with code coverage
run: npx gulp botbrowsertest --headless -j$(nproc) --coverage --coverage-output build/coverage/browser --noChrome

- name: Save cached PDF files
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: test/pdfs/*.pdf
key: cached-pdf-files-${{ hashFiles('test/pdfs/*.pdf') }}
enableCrossOsArchive: true

- name: Upload results to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/coverage/browser/lcov.info
flags: browsertest
name: codecov-umbrella
disable_search: true
disable_telem: true
verbose: true
21 changes: 12 additions & 9 deletions .github/workflows/fluent_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
paths:
- 'l10n/en-US/**.ftl'
- '.github/fluent_linter_config.yml'
- '.github/fluent_linter_requirements.txt'
- '.github/workflows/fluent_linter.yml'
branches:
- master
pull_request:
paths:
- 'l10n/en-US/**.ftl'
- '.github/fluent_linter_config.yml'
- '.github/fluent_linter_requirements.txt'
- '.github/workflows/fluent_linter.yml'
branches:
- master
Expand All @@ -25,18 +27,19 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Use Python 3.13
uses: actions/setup-python@v6
- name: Use Python 3.14
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.13'
python-version: '3.14'
cache: 'pip'
cache-dependency-path: '.github/fluent_linter_requirements.txt'

- name: Install Fluent dependencies
run: |
pip install -r .github/requirements.txt
- name: Install requirements
run: pip install -r .github/fluent_linter_requirements.txt

- name: Lint Fluent reference files
run: |
moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
run: moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
Loading