Open Bug 1612351 Opened 5 years ago Updated 2 years ago

Firefox ignores content-disposition for embedded pdf because of default action

Categories

(Firefox :: File Handling, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: orkeshum, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Steps to reproduce:

  1. Set "Always ask" for default action for PDF in Firefox settings.
  2. Set iframe's src with link to pdf
  3. PDF request should return content-disposition "inline; filename=textstyle"

alternative reproduction: set always ask setting and go to https://pdfobject.com/static/, you won't see pdf viewer

Actual results:

Popup for saving pdf is prompted for user

Expected results:

Iframe should preview pdf

It seems that firefox competely ignores content-disposition for pdf (well, firefox does exactly what the setting is about, but I don't understand why there is such setting). With this setting you can't implement list of pdfs with previewer

Similar to bug 1500404 except there's a download prompt in this case.

Has STR: --- → yes
Component: Untriaged → PDF Viewer
See Also: → 1500404
Summary: Firefox ignores content-disposition for preview pdf because of default action → Firefox ignores content-disposition for embedded pdf because of default action
Priority: -- → P3
Severity: normal → --
Component: PDF Viewer → File Handling
Priority: P3 → --
Version: 72 Branch → Trunk
See Also: → 1655525
See Also: 1500404
You need to log in before you can comment on or make changes to this bug.