Closed Bug 1723568 Opened 5 years ago Closed 3 years ago

Opening PDF in FireFox causes PDF to display WATERMARK

Categories

(Firefox :: PDF Viewer, defect, P1)

defect

Tracking

()

VERIFIED FIXED
112 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- verified
firefox113 --- verified

People

(Reporter: alfonso.car, Assigned: calixte)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [pdfjs-form-acroform])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Steps to reproduce:

I downloaded a PDF from my system and opened the PDF in chrome, no water mark was displayed, opened the same PDF in FireFox caused watermark to appear.

Attached is the PDF.

Steps to reproduce:

  1. Download attached PDF
  2. Drag into FireFox
  3. See big watermark box
  4. Drag into different browser (chrome, etc)
  5. Big watermark box is not there.

Actual results:

Watermark being displayed in FireFox browser but no other browsers.

Expected results:

No watermark should be displayed.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

The watermark should be displayed, but it should be displayed behind the rest of the text, in grey instead of black and at an angle.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1658934
Has Regression Range: --- → yes

(In reply to Marco Castelluccio [:marco] from comment #2)

The watermark should be displayed, but it should be displayed behind the rest of the text, in grey instead of black and at an angle.

Yes exactly!

The watermark is the appearance of a text annotation.
This annotation has a Ff flag equals to 1, and in specs we've:
https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#G11.2097409
so it means that the user cannot interact with the annotation, so we should remove the input here but it doesn't mean that we mustn't render it (there is something else for that, e.g. F field), consequently we must render the annotation using the default appearance or the appearance based on its value (which can be changed thanks to JS).
So for such a case, I think we should use a canvas to render the annotation appearance and eventually change it on JS actions, and this in order to avoid to redraw all the pdf.
More generally, I think we should render the annotation in a canvas and display this canvas when the annotation is unfocused and display an html form element when focused.
Maybe there are other good alternatives to solve this kind of issue.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [pdfjs-c-forms]
Whiteboard: [pdfjs-c-forms] → [pdfjs-form-acroform]
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: P3 → P1
Depends on: 1821105
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Flags: qe-verify+

Reproducible with a 2023-03-07 Nightly build on macOS 12.
Verified as fixed on Firefox 112.0b2(build ID: 20230314181505) and Nightly 113.0a1(build ID: 20230315092641) on macOS 12, Windows 10, Ubuntu 22.
Watermark is now displayed properly.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: