Skip to content
New issue

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

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

Already on GitHub? # to your account

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

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 30 anyway (the Your browser is not supported screen lists Firefox 128 and Chrome 126 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:06
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 30.0.6 milestone Feb 5, 2025
@Altahrim Altahrim mentioned this pull request Feb 5, 2025
15 tasks
@AndyScherzinger AndyScherzinger merged commit ad2e4cf into stable30 Feb 5, 2025
34 of 37 checks passed
@danxuliu danxuliu requested a review from szaimen February 5, 2025 21:26
@danxuliu danxuliu deleted the backport/1131/stable30-dependabot/npm_and_yarn/pdfjs-dist-4.0.189 branch February 5, 2025 21:29
# for free to join this conversation on GitHub. Already have an account? # 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