When you open internal links in pdfs in a new tab, the new tab does not load
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: ottikar, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
Steps to reproduce:
I open a pdf that has internal links (such as on https://arxiv.org/pdf/1707.04616 ) with firefox.
Clicking on one of links (e.g. reference 21 on page number 1 in the above pdf) makes you jump to reference number 21 just as expected. However, if you right-click on number 21 and say "Open in a new tab" then things do not work as expected.
Actual results:
A new tab opens with (in my case) URL
file:///C:/Users/oskar/Downloads/1707.04616.pdf#cite.SCHU
but nothing is displayed. Even pressing F5 does not make the pdf load. You have to focus the URL and press Enter to make it load. Then the pdf loads and is at the correct position.
Expected results:
The page should have loaded without any further interactions.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Hi ottikar,
This could be taken into consideration in the future.
I set this Enhancement as New for visibility.
Regards,
Jerónimo.
Comment 3•3 years ago
|
||
This now works for me with the link in the example, but I expect this is because it's now opened directly from the internet, rather than first downloaded to disk. If you use a PDF stored locally on disk, I bet it still fails. Reporter, could you confirm if you're still seeing this in Firefox 100, either with PDFs loaded from https
urls or from file
ones? Thank you, and sincere apologies for the triage-process-induced long silence here...
Comment 4•3 years ago
|
||
This looks, for all intents and purposes, like duplicate of bug 1678914 since the underlying problem is identical:
The PDF Viewer runs with a resource:
-URL, and those are apparently not allowed to link to file:
-URLs (regardless that the PDF document itself was loaded from a file:
-URL).
Comment 5•3 years ago
|
||
(In reply to Jonas Jenwald [:Snuffleupagus] from comment #4)
This looks, for all intents and purposes, like duplicate of bug 1678914 since the underlying problem is identical:
The PDF Viewer runs with aresource:
-URL, and those are apparently not allowed to link tofile:
-URLs (regardless that the PDF document itself was loaded from afile:
-URL).
Yeah, I think that's accurate.
Description
•