Closed Bug 1744067 Opened 3 years ago Closed 3 years ago

When you open internal links in pdfs in a new tab, the new tab does not load

Categories

(Firefox :: PDF Viewer, defect)

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 1678914

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.

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.

Component: Untriaged → File Handling

Hi ottikar,
This could be taken into consideration in the future.
I set this Enhancement as New for visibility.
Regards,
Jerónimo.

Status: UNCONFIRMED → NEW
Ever confirmed: true

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...

Type: enhancement → defect
Component: File Handling → PDF Viewer
Flags: needinfo?(ottikar)

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).

(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 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).

Yeah, I think that's accurate.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.