content-disposition: inline, filename=foo.pdf not working
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: amit.dor.shifer, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Steps to reproduce:
serve a pdf with the following headers:
Content-Disposition: inline; filename="foo.pdf"
Content-Type: application/pdf;charset=UTF-8
Actual results:
foo.pdf is downloaded to host filesystem.
Expected results:
pdf should appear inline in the browser window, without creating a file on the host filesystem. (my understanding of https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition)
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:Gijs, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•3 years ago
|
||
Apologies this went unattended for so long.
I can't reproduce this myself (ie I get the expected behaviour). Can you provide an online testcase that reproduces this issue for you? And in your local Firefox, are PDfs configured to open in Firefox? (You can check in the settings, search for "PDF".)
Reporter | ||
Comment 3•3 years ago
|
||
(In reply to :Gijs (he/him) from comment #2)
Apologies this went unattended for so long.
I can't reproduce this myself (ie I get the expected behaviour). Can you provide an online testcase that reproduces this issue for you? And in your local Firefox, are PDfs configured to open in Firefox? (You can check in the settings, search for "PDF".)
Many thanks. Your input led me in the right direction. Indeed, under Settings / Files and Applications / Applications, PDF content type was set to the 'Save File' action. Don't recall setting it myself. Could that be the default? At any rate, once set as suggested to 'Open in Firefox' - works as expected.
Reporter | ||
Updated•3 years ago
|
Description
•