Open Bug 1484471 Opened 5 years ago Updated 1 month ago
Clicking PDF Viewer 'Current View' button does not work for PDFs accessed from local file (cannot link to file: protocol from the unprivileged `resource` PDF viewer page)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 Build ID: 20180818100051 Steps to reproduce: 1.) Open a local PDF (must be stored on your computer) file in Firefox PDF viewer There are then 3 issues, designated by a, b, and c: 2a.) Primary-click (Left-click) Current View button 2b.) Secondary-click (Right-click) Current View button 3b.) Click 'Open in New Tab' 2c.) Secondary-click Current View button 3c.) Click 'Open in New Window I only put these in one bug because I suspect that there is an issue with the link that could fix all three buttons at a time. If this is disproven, feel free to split up the issue. Actual results: a.) The button appears clicked until you click somewhere else, but nothing significant happens. b.) A blank page appears in a new tab with a modified link to the PDF in the address bar. c.) A new window appears showing about:blank. Expected results: a.) The link in the current tab changes to target the specific location in the PDF. b.) A new tab appears showing the same location in the PDF as the original tab. c.) A new window appears showing the same location in the PDF as the original window.
5 years ago
Component: Untriaged → PDF Viewer
I'm unable to reproduce. Does this happen on a specific PDF or all PDFs?
Good catch. This bug only shows up when the open PDF is local (that is, stored on your computer). It does work on all *local* PDFs, though. Re-reproduced on Firefox Nightly 64.0a1 (2018-09-30) (64-bit)
Regression Range ---------------- B: 2015-08-08 G: 2015-08-07 Issue with 2015-08-08: Attempting to open PDF would attempt to download it. I could not use the 'open file' option b/c it would open in my system nightly rather than mozregression nightly. Somehow I managed to circumvent this and find that the bug was present. To open the PDF, I had to open a non-multiprocess window and open it in that window. The original window would only display a blank page.
This screenshot shows the build info for the skipped build. It seems to me that the way (local?) PDFs were handled was changed on 2015-08-08. In that build, opening the local PDF prompted behavior that typically happens when downloading a PDF. Then, this change was either reverted or revised. This was probably when the bug was introduced. I will try to narrow the range further if possible.
The 2015-08-08 build on mozilla-central does have the bug. Comment 3 was updated.
Has Regression Range: --- → yes
Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(cdenizet)
OS: Unspecified → All
Hardware: Unspecified → Desktop
Summary: PDF Viewer 'Current View' button does not work → Clicking PDF Viewer 'Current View' button does not work for PDFs accessed from local file (cannot link to file: protocol from the unprivileged `resource` PDF viewer page)
You need to log in before you can comment on or make changes to this bug.