Opening PDF in FireFox causes PDF to display WATERMARK
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
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:
- Download attached PDF
- Drag into FireFox
- See big watermark box
- Drag into different browser (chrome, etc)
- 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.
Comment 1•5 years ago
|
||
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.
Comment 2•5 years ago
|
||
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.
Updated•5 years ago
|
| Reporter | ||
Comment 3•5 years ago
|
||
(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!
Updated•5 years ago
|
Updated•4 years ago
|
| Assignee | ||
Comment 4•4 years ago
|
||
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.
| Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
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.
Description
•