PDF viewer doesn't work since QtWebengine version 5.15.2

Bug #1926089 reported by Blaze
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qtwebengine-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

PDF files are not shown in Qt WebEngine based browsers, such as Falkon.

The bug appeared because Polymer v3 JS library, which is needed by the internal PDF viewer, was excluded from the tarball for DFSG compliance.

[Test Plan]

1. Open a browser application based on QtWebEngine, i.e. Falkon

2. Open a PDF file either local or online. Example PDF link: http://www.africau.edu/images/default/sample.pdf

3. See no controls and no file visible on the page, JavaScript errors on the console

What is expected:
PDF file being opened, all controls on the page are visible, similarly to the following screenshot
 https://i.imgur.com/ByXKqdv.png

[Where problems could occur]

The fix is using a non-minified file instead of the minified one. The substantial part of these files seems to be identical.

There may be still some problems with the PDF viewer, because we are using a wrong file or because other files are excluded. But it should be definitely better than completely broken viewer.

Also the package may FTBFS. However I tested it in a PPA and it built fine on all three architectures.

[Other Info]

Please also see duplicate bug 1936821 where the same issue was reported.

CVE References

Blaze (blaze)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtwebengine-opensource-src - 5.15.5+dfsg-1

---------------
qtwebengine-opensource-src (5.15.5+dfsg-1) experimental; urgency=medium

  * New upstream release.
    - Includes a fix for building with GCC 11 (closes: #984315).
  * Update get-orig-source target for the new release.
  * Drop two patches that are included in the new release:
    - fix-locales-normalization.patch
    - CVE-2021-21193.patch
  * Bump ABI version to qtwebengine-abi-5-15-5.
  * Remove polymer_bundled.min.js from Files-Excluded (LP: #1926089).
    - There is non-minified polymer_bundled.js in the source.
  * Forward DEB_BUILD_OPTIONS=parallel=N setting to ninja (closes: #986684).
  * Make sure $NINJAJOBS is also used when bootstrapping gn.
  * Add libxkbfile-dev build-dependency (required since 5.15.5).
  * Update symbols files from buildds’ and the current build logs.

 -- Dmitry Shachnev <email address hidden> Sat, 19 Jun 2021 11:58:16 +0300

Changed in qtwebengine-opensource-src (Ubuntu):
status: New → Fix Released
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtwebengine-opensource-src (Ubuntu Hirsute):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Blaze, or anyone else affected,

Accepted qtwebengine-opensource-src into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/qtwebengine-opensource-src/5.15.3+dfsg-5ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in qtwebengine-opensource-src (Ubuntu Hirsute):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Blaze or Bruno, can you please test the version in hirsute-proposed and confirm it works for you?

Revision history for this message
Blaze (blaze) wrote :

I can confirm that everything works with this change being applied

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Great, thank you, marking as verified based on your comment.

tags: added: verification-done verification-done-hirsute
removed: verification-needed verification-needed-hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtwebengine-opensource-src - 5.15.3+dfsg-5ubuntu1

---------------
qtwebengine-opensource-src (5.15.3+dfsg-5ubuntu1) hirsute; urgency=medium

  * Copy polymer_bundled.js to polymer_bundled.min.js, to unbreak PDF viewer
    (LP: #1926089).

 -- Dmitry Shachnev <email address hidden> Thu, 12 Aug 2021 20:49:00 +0300

Changed in qtwebengine-opensource-src (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for qtwebengine-opensource-src has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.