Jonas Jenwald
ae507c49b3
Merge pull request #20784 from Snuffleupagus/PdfTextExtractor-fix-intermittent
...
Prevent `PdfTextExtractor.prototype.extractTextContent` from failing intermittently
2026-03-03 15:10:26 +01:00
Jonas Jenwald
54a8c049fd
Prevent PdfTextExtractor.prototype.extractTextContent from failing intermittently
...
Given that extracting all text can take a while to complete, especially in long PDF documents[1], it's technically possible for the user to "select all", copy, and finally abort copying (with the `Esc` key) while `PdfTextExtractor.prototype.extractTextContent` is still running.
If that happens the `PDFViewer.prototype.getAllText` code would be interrupted, and text-extraction would thus fail in an intermittent and (likely) hard to debug way. To avoid this we replace the current "global" interrupt handling with an optional `AbortSignal` instead.
---
[1] See e.g. `pdf.pdf` in the test-suite.
2026-03-03 11:55:33 +01:00
calixteman
d859d78bb5
Merge pull request #20775 from Snuffleupagus/hide-select-pages
...
Hide the "Select pages" label, in the thumbnails sidebar, when split-merge is disabled
2026-03-02 14:53:15 +01:00
calixteman
0c29cc5887
Merge pull request #20776 from Snuffleupagus/commentManager-l10n-getDirection
...
Use `L10n.prototype.getDirection` rather than querying the DOM, when initializing the `CommentManager` instance
2026-03-02 14:45:36 +01:00
calixteman
3cb32b6ab2
Merge pull request #20772 from calixteman/babel_plugin_strip_src_path
...
Use a babel plugin in order to strip /src/ from the import paths
2026-03-02 14:44:49 +01:00
Jonas Jenwald
0d131f0957
Use L10n.prototype.getDirection rather than querying the DOM, when initializing the CommentManager instance
...
Hopefully I'm not misunderstanding why it was written like that, however using an existing method should be a tiny bit more efficient than querying the DOM.
2026-03-02 11:33:34 +01:00
Jonas Jenwald
a0e70eb6aa
Hide the "Select pages" label, in the thumbnails sidebar, when split-merge is disabled
...
Currently there's a "pointless" label displayed, thus taking up vertical space, when `enableSplitMerge = false` is set.
2026-03-02 11:19:02 +01:00
calixteman
afa8a07a2b
Merge pull request #20760 from calixteman/avoid_noise
...
Just output in the console the results for the integrations which ran
2026-03-02 10:15:12 +01:00
calixteman
2eb145f3f1
Use a babel plugin in order to strip /src/ from the import paths
2026-03-01 22:17:30 +01:00
Calixte Denizet
6b3331f47b
Just output in the console the results for the integrations which ran
2026-03-01 21:55:23 +01:00
Tim van der Meij
55c371d97c
Merge pull request #20771 from timvandermeij/bump
...
Bump the stable version in `pdfjs.config`
2026-03-01 21:28:56 +01:00
Tim van der Meij
4230ba19df
Bump the stable version in pdfjs.config
2026-03-01 21:25:24 +01:00
Tim van der Meij
5279646985
Merge pull request #20751 from calixteman/bug2016693
...
Avoid to scroll too much when the thumbnail is at the bottom of the sidebar (bug 2016693)
v5.5.207
2026-03-01 21:14:44 +01:00
calixteman
98d0332a9f
Merge pull request #20767 from calixteman/followup_20742
...
Add an integration test for the issue fixed in #20742
2026-03-01 21:11:50 +01:00
calixteman
c1fe547a05
Add an integration test for the issue fixed in #20742
2026-03-01 20:55:59 +01:00
Tim van der Meij
62ceac6e97
Merge pull request #20769 from timvandermeij/updates
...
Update dependencies to the most recent versions
2026-03-01 20:55:40 +01:00
Tim van der Meij
3d2d145329
Fix vulnerabilities in dependency versions
...
This patch is generated automatically using `npm audit fix`.
2026-03-01 20:44:42 +01:00
Tim van der Meij
ced9b4717f
Upgrade c8 to version 11.0.0
...
This is a major version bump, but the changelog at
https://github.com/bcoe/c8/releases/v11.0.0 doesn't indicate any
breaking changes that should impact us.
2026-03-01 20:43:20 +01:00
Tim van der Meij
4cb0d504b0
Update dependencies to the most recent versions
2026-03-01 20:42:19 +01:00
Tim van der Meij
5cbb8413cb
Merge pull request #20768 from calixteman/rm_yargs
...
Remove dependency to yargs and use node:utils parseArgs
2026-03-01 20:19:11 +01:00
Tim van der Meij
1861a4c4ad
Merge pull request #20756 from Snuffleupagus/PDFDataRangeTransport-tests
...
Improve the `PDFDataRangeTransport` unit-tests
2026-03-01 20:10:34 +01:00
Tim van der Meij
f32b9d2677
Merge pull request #20738 from Snuffleupagus/function-shorten
...
Slightly shorten some code in the `src/core/function.js` file
2026-03-01 20:06:29 +01:00
Tim van der Meij
e0ea84fdac
Merge pull request #20761 from calixteman/tweak_dims
...
Tweak few elements: dimensions and the checkbox color in the new sidebar
2026-03-01 20:01:07 +01:00
Tim van der Meij
9dfcc62bb9
Merge pull request #20758 from calixteman/fix_sidebar_height
...
Fix the page sidebar height
2026-03-01 19:58:18 +01:00
Tim van der Meij
6299bf7fd6
Merge pull request #20762 from mozilla/dependabot/npm_and_yarn/multi-f5f34deeac
...
Bump minimatch
2026-03-01 19:56:30 +01:00
Tim van der Meij
2bc9a59acc
Merge pull request #20766 from mozilla/dependabot/npm_and_yarn/fast-xml-parser-5.4.1
...
Bump fast-xml-parser from 5.3.5 to 5.4.1
2026-03-01 19:56:03 +01:00
calixteman
f57b73d881
Remove dependency to yargs and use node:utils parseArgs
2026-03-01 15:01:31 +01:00
calixteman
00d9d3a6ea
Merge pull request #20742 from Snuffleupagus/tree-viewer-scrollIntoView
...
Fix scrolling of outline item into view (PR 20495 follow-up)
2026-03-01 13:01:21 +01:00
dependabot[bot]
73bd5c35da
Bump fast-xml-parser from 5.3.5 to 5.4.1
...
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser ) from 5.3.5 to 5.4.1.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases )
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.3.5...v5.4.1 )
---
updated-dependencies:
- dependency-name: fast-xml-parser
dependency-version: 5.4.1
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 00:12:36 +00:00
dependabot[bot]
7a8571459a
Bump minimatch
...
Bumps and [minimatch](https://github.com/isaacs/minimatch ). These dependencies needed to be updated together.
Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5 )
Updates `minimatch` from 9.0.5 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5 )
Updates `minimatch` from 10.1.1 to 10.2.4
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5 )
---
updated-dependencies:
- dependency-name: minimatch
dependency-version: 3.1.5
dependency-type: indirect
- dependency-name: minimatch
dependency-version: 9.0.9
dependency-type: indirect
- dependency-name: minimatch
dependency-version: 10.2.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 03:47:33 +00:00
Jonas Jenwald
86573cc995
Merge pull request #20757 from Snuffleupagus/getPdfFilenameFromUrl-fix-decode-regex
...
Fix the broken regular expression in the `decode` helper in the `getPdfFilenameFromUrl` function (issue 20664)
2026-02-27 23:14:18 +01:00
calixteman
b4f98e8a9b
Merge pull request #20747 from calixteman/check__l10n
...
Add a script for searching the unused fluent ids
2026-02-27 22:19:50 +01:00
Calixte Denizet
82fdeaaac0
Add a script for searching the unused fluent ids
2026-02-27 19:16:15 +01:00
calixteman
4dd51a20a5
Merge pull request #20736 from jrmuizel/scientific
...
Remove scientific notation parsing.
2026-02-27 18:51:15 +01:00
calixteman
9c3a752388
Merge branch 'master' into scientific
2026-02-27 18:39:44 +01:00
Calixte Denizet
c272cbdf5a
Tweak few elements: dimensions and the checkbox color in the new sidebar
2026-02-27 18:36:38 +01:00
calixteman
bd260b2d15
Merge pull request #20746 from calixteman/bug2019714
...
Fix tooltips on thumbnails and checkbox (bug 2019714)
2026-02-27 18:20:37 +01:00
Calixte Denizet
aa928105b4
Fix tooltips on thumbnails and checkbox (bug 2019714)
...
And fix an issue with some integration tests where the manage button was disabled (hence not in the tab cycle).
2026-02-27 17:43:27 +01:00
calixteman
45b0f8b05e
Merge pull request #20748 from calixteman/add_file_button
...
Make the 'add file' button not hidden but just not visible in order to fix the layout
2026-02-27 17:34:53 +01:00
calixteman
123ed241e6
Merge pull request #20750 from calixteman/pr20740_followup
...
Add an integration test for PR 20740
2026-02-27 17:34:20 +01:00
Calixte Denizet
2572285827
Add an integration test for PR 20740
2026-02-27 17:07:44 +01:00
Calixte Denizet
a251b99e2b
Make the 'add file' button not hidden but just not visible in order to fix the layout
...
The feature will be plugged later.
2026-02-27 16:53:30 +01:00
Calixte Denizet
79942b7720
Fix the page sidebar height
...
It has to be the viewer height but with a padding of 8px.
2026-02-27 16:13:14 +01:00
Jonas Jenwald
e3a7c0779d
Fix the broken regular expression in the decode helper in the getPdfFilenameFromUrl function (issue 20664)
...
This will ignore filenames that become effectively empty, i.e. ones that are only ".pdf" and nothing more.
*Please note:* While this passes all existing unit-tests, I don't know if this is necessarily the "correct" solution here.
2026-02-27 15:19:43 +01:00
Jonas Jenwald
fecb0aab1d
Improve the PDFDataRangeTransport unit-tests
...
- Add a new test using only streaming, since that was missing and the lack of which most likely contributed to previous bugs in the `PDFDataRangeTransport` implementation (see PR 10675 and 20634).
- Improve the "ranges and streaming" test, to utilize both ranges *and* streaming properly, since the way it was written seemed somewhat unrealistic given how data will normally arrive when `PDFDataRangeTransport` is being used.
- Provide more `initialData`, in relevant tests, since a length smaller than `rangeChunkSize` seem pretty pointless.
- Test the `contentDispositionFilename`, and `contentLength`, handling in the `PDFDataRangeTransport` implementation.
2026-02-27 14:55:39 +01:00
Jonas Jenwald
218a687a3b
Merge pull request #20755 from Snuffleupagus/rm-unmaintained-locales
...
Automatically remove unmaintained locales when running `gulp importl10n`
2026-02-27 14:52:01 +01:00
Jonas Jenwald
24fe94206a
Automatically remove unmaintained locales when running gulp importl10n
...
It's not particularly common for locales to be removed from Firefox, but it has happened occasionally in the past.
Currently the `downloadL10n` function logs a message about any unmaintained locales, but after PR 20749 that code is running in GitHub Actions (rather than locally by a contributor) which makes it much less likely for the message to be seen.
2026-02-27 10:46:57 +01:00
calixteman
e5656e4303
Merge pull request #20752 from mozilla/update-locales
...
l10n: Update locale files
2026-02-27 09:07:59 +01:00
Jeff Muizelaar
8fa6ef36e4
Remove scientific notation parsing.
...
This behaviour comes from the initial pdf.js commit but is wrong and
doesn't match other PDF readers like muPDF or pdfium.
From PDF Spec 7.3.3:
A PDF writer shall not use the PostScript language syntax for numbers with non-decimal radices (such
as 16#FFFE) or in exponential format (such as 6.02E23).
2026-02-26 20:22:34 -05:00
github-actions[bot]
a541428363
l10n: Update locale files
2026-02-27 00:31:45 +00:00