Open Bug 1809089 Opened 3 years ago Updated 2 years ago

PDF viewer stuck on page

Categories

(Firefox :: PDF Viewer, defect, P3)

Firefox 107
defect

Tracking

()

People

(Reporter: raysatiro, Unassigned)

References

Details

Attachments

(2 files)

Attached file manual.pdf

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

Steps to reproduce:

  1. Open the attached PDF
  2. Observe the PDF is forwarded to some "warning" pages at the end of the PDF that expect the user to click OK, but OK can't be clicked
  3. The rest of the PDF (several hundred pages) cannot be viewed because it's stuck at that warning / confirm page.

Actual results:

I want to view all the pages of a PDF but Firefox is limiting me to like 3 pages of it. I have the same problem in Chrome. https://bugs.chromium.org/p/chromium/issues/detail?id=1405690

Expected results:

I think this has something to do with javascript in the PDF. PDF viewers in browsers execute some of the javascript but not enough for it to work properly. If it wanted to execute zero javascript I'd be fine with that I just want to view all the pages.

Reproducible in 110.0a1

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

Component: Untriaged → PDF Viewer

I am able to click on 'Ok' button from the pdf but still only 3 pages(397, 398, 399) are displayed from a total of 399, also since it is the same behavior on Chrome isn't this a pdf issue? I tested on Win10x64 using FF build 110.0a1(20230108214732) and Chrome Version 108.0.5359.125.

Flags: needinfo?(raysatiro)

What is the behavior in Adobe Reader?

I saved the pdf to download folder and opened it on adobe, same message pop-up and after pressing on Ok button I was able to only view the same 3 pages.

I think this is a pdf.js issue, refer to the github reference posted earlier by Jonas Jenwald. In the latest Acrobat Reader DC, version 2022.003.20282, I am able to view the PDF. After clicking OK the PDF returns to the first page and all pages are accessible.

Flags: needinfo?(raysatiro)
Attached image okbutton.jpg

Maybe we are talking about different OK buttons? I am talking about the green OK button that comes after the popup. See the attached screenshot.

Yes there are 2 ok buttons, first as a warning when first opening the pdf, second button as mentioned on comment#7. Second button can be pressed only on Adobe reader, on Firefox and Chrome the button is not working for me. Indeed if pressing second button on Adobe displays the entire document.

A workaround is proposed here (i.e. disabling JS):
https://github.com/mozilla/pdf.js/issues/14308#issuecomment-979053434

Severity: -- → S3
Priority: -- → P3

Can we mark this issue as New if there is a chance to be fixed in the future?

Flags: needinfo?(cdenizet)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(cdenizet)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: