Open Bug 1968392 Opened 1 year ago Updated 1 year ago

PDF incorrectly rendered

Categories

(GeckoView :: PDF Viewer, defect)

Firefox 139
All
Android
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: vincent-moz, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Android 15; Mobile; rv:139.0) Gecko/139.0 Firefox/139.0

Steps to reproduce:

Open the https://nextcloud.jdll.org/s/LLmJ2iFbrcyKPxb?dir=/&openfile=true PDF file and zoom.

Actual results:

Some parts of the PDF file are incorrectly rendered (see attached screenshot). The issue is not always reproducible.

Expected results:

The PDF file should always be rendered correctly.

Is this a reproducible issue with pdf.js?

Severity: -- → S3
Component: General → PDF Viewer
Flags: needinfo?(cdenizet)
Product: Firefox for Android → GeckoView

The above URL links to a website using pdf.js as a library v4.0.189 when the current one is v5.3.31 so it should probably be updated.
Anyway, this kind of rendering issue is usually because of canvas acceleration which is disabled by default in the Fenix build-in pdf viewer but it's enabled by default (the pref doesn't exist in v4.0.189) in the lib.
In considering that I can't reproduce the bug on neither desktop (Win 11) nor on a real pixel 8 device is very unlikely a pdf.js issue but an accelerated canvas one.
:lsalzman, does something on the screenshot ring a bell for you ?

Flags: needinfo?(cdenizet) → needinfo?(lsalzman)

No idea offhand. It looks like it is using the wrong (sub)texture somehow. But we haven't tested PDFjs extensively with acceleration at the moment due to the disabling, so it could be almost anything.

Flags: needinfo?(lsalzman)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: