Open Bug 1678914 Opened 4 years ago Updated 2 years ago

PDF viewer does not support relative links from local files (file://)

Categories

(Firefox :: PDF Viewer, enhancement, P5)

Firefox 84
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: nilskemail+github, Unassigned)

References

Details

(Whiteboard: [pdfjs-ux][pdfjs-ux-wanted][pdfjs-integration])

Attachments

(1 file)

Attached file link.pdf

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Steps to reproduce:

Download the attached PDF and save it locally. Afterwards open it using firefox.

Actual results:

The left link is visible and one can interact with it. The right one not.

Expected results:

Both links should show up and one should be able to follow them.

Additional details:
The problem is also reported at the PDF.js repo (https://github.com/mozilla/pdf.js/issues/12415) but was closed there as it is not fixable there without changes to firefox. Inside PDF.js it would only require to allow file links which are currently disabled.

Firefox allows linking to local files from other local files however the PDF viewer is opened from the resource:// URI scheme which prevents this.

Other PDF viewers show these links. The best comparison is probably with Chrome as it is also subject to the security considerations of a browser. Chrome does not show the annotations boxes around the links but the links are both functional.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → PDF Viewer
Priority: -- → P5
Whiteboard: [pdfjs-ux][pdfjs-ux-wanted][pdfjs-integration]
See Also: → 1721662
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: