Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] chore(deps): Bump pdfjs-dist from 3.11.174 to 4.0.189 #1134

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Feb 5, 2025

Backport of #1131

While the PDF.js version is usually not changed in maintenance releases it is the only way to fix read-only forms not being visible when the PDF file is showing read-only annotations (in the case of the PDF viewer this happens when the file itself is read only). This was fixed in PDF.js 4.0.189 (17066 in https://github.com/mozilla/pdf.js/pull, not linking directly to avoid polluting the pull request with backlinks), but PDF.js does not have a stable version with fixes and another one with new features, the versions are just increased and everything fixed or implemented go in the new version.

Note that the updated PDF.js version is no longer compatible with some older browsers that worked before due to now using the structuredClone API. Therefore, with this change the PDF viewer will require at least Firefox 94 and Chromium 98. However, those older browsers no longer compatible were not officially supported in Nextcloud 29 anyway (the Your browser is not supported screen lists Firefox 122 and Chrome 121 as the minimum versions).

Also note that even if the PDF viewer works with older browser versions like Firefox 94 and Chromium 98 not all the features of PDF.js may be available in them (for example, adding image annotations), although that was also the case with PDF.js 3.11.174 and the version bump does not change anything.

How to test

Result with this pull request

The form is visible

Result without this pull request

The form is not visible

dependabot bot and others added 2 commits February 5, 2025 19:59
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.11.174 to 4.0.189.
- [Commits](https://github.com/mozilla/pdfjs-dist/commits)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 3.11.174 to 4.0.189 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added 3. to review dependencies Pull requests that update a dependency file labels Feb 5, 2025
@danxuliu danxuliu added this to the Nextcloud 29.0.12 milestone Feb 5, 2025
@danxuliu danxuliu requested a review from szaimen February 5, 2025 19:34
@Altahrim Altahrim mentioned this pull request Feb 5, 2025
5 tasks
@AndyScherzinger AndyScherzinger merged commit 01d8892 into stable29 Feb 5, 2025
37 of 38 checks passed
@danxuliu danxuliu deleted the backport/1131/stable29-dependabot/npm_and_yarn/pdfjs-dist-4.0.189 branch February 5, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants