browser.download.open_pdf_attachments_inline is ignored when choosing "Open with Firefox" from the download window
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
People
(Reporter: pierov, Unassigned)
References
(Depends on 1 open bug)
Details
STR:
- Set
browser.download.open_pdf_attachments_inline
totrue
inabout:config
- Set "Portable Document Format (PDF)" to "Always ask" in the Applications section of about:preferences#general
- Open a file that is served with
Content-disposition: attachment
(you can use my script from Bug 1851968 comment 9) - When the download confirmation dialog appears, choose "Open with Firefox"
What happens: the PDF file is downloaded to the filesystem before being opened (notice the file://
scheme in the URL bar).
Expectation: I would like the download to the filesystem to be skipped (the behavior of browser.download.open_pdf_attachments_inline
when PDF files are set to "Open with Firefox" instead of "Always ask").
The rationale is that a user concerned about disk-leaks might think the file will not be downloaded if they choose to open it in the browser (and consistency as well 🙂).
I would like to extend browser.download.open_pdf_attachments_inline
to all the file types set to be opened in Firefox (see Bug 1923368), so I set it as a blocker for this Bug, in case open_pdf_attachments_inline
is changed first.
Comment 1•1 year ago
|
||
This is expected because when the dialog for user choice comes up the download is already in progress. We can't do anything about that or redirect it back into a browsingcontext anymore, at that point.
Fairly sure we already have this on file (probably invalid/wontfix) somewhere but can't find it right now. :-(
Description
•