Closed Bug 1923835 Opened 1 year ago Closed 1 year ago

browser.download.open_pdf_attachments_inline is ignored when choosing "Open with Firefox" from the download window

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: pierov, Unassigned)

References

(Depends on 1 open bug)

Details

STR:

  1. Set browser.download.open_pdf_attachments_inline to true in about:config
  2. Set "Portable Document Format (PDF)" to "Always ask" in the Applications section of about:preferences#general
  3. Open a file that is served with Content-disposition: attachment (you can use my script from Bug 1851968 comment 9)
  4. 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.

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

Close per comment 1.

Status: NEW → RESOLVED
Closed: 1 year ago
Keywords: dupeme
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.