Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

PDFs download to unwanted directory when "Always Ask" is set

  • 1 wótegrono
  • 1 ma toś ten problem
  • 1 naglěd
  • Slědne wótegrono wót pg_78

more options

Steps to reproduce (FF 98.0.2 on Windows 10):

1) Set the Downloads directory to "Always ask you where to save files" (screenshot 1)

2) Set the handling choice for application/pdf to "Always ask" (screenshot 2)

3) Click on a link to a PDF file

4) In the dialog that pops up, choose "Open in Firefox" (screenshot 3)


Desired behaviour:

The PDF opens in Firefox, with a copy temporarily saved in the web cache (not in the filesystem).


Actual behaviour:

The PDF opens in Firefox, but a copy is saved in the greyed-out "default" directory from screenshot 1 (R:\Temp): see screenshot 4.


This seems wrong for two reasons:

i) The documented behaviour of Firefox is to save downloaded PDFs in the web cache, so that they get cleared when the cache is cleared.

ii) In screenshot 1, I've instructed Firefox to always ask me where to save files. But FF has instead assumed it can save files in a directory without asking me.


This can be sort-of worked around by changing the handling choice to "Open in Firefox". In that case, PDFs do seem to be stored in the cache, not in the filesystem. Then if I want to save a PDF, I can manually save it from the tab it opens in.

But is there a better way to fix this?

Steps to reproduce (FF 98.0.2 on Windows 10): 1) Set the Downloads directory to "Always ask you where to save files" (screenshot 1) 2) Set the handling choice for application/pdf to "Always ask" (screenshot 2) 3) Click on a link to a PDF file 4) In the dialog that pops up, choose "Open in Firefox" (screenshot 3) Desired behaviour: The PDF opens in Firefox, with a copy temporarily saved in the web cache (not in the filesystem). Actual behaviour: The PDF opens in Firefox, but a copy is saved in the greyed-out "default" directory from screenshot 1 (R:\Temp): see screenshot 4. This seems wrong for two reasons: i) The documented behaviour of Firefox is to save downloaded PDFs in the web cache, so that they get cleared when the cache is cleared. ii) In screenshot 1, I've instructed Firefox to always ask me where to save files. But FF has instead assumed it can save files in a directory without asking me. This can be sort-of worked around by changing the handling choice to "Open in Firefox". In that case, PDFs do seem to be stored in the cache, not in the filesystem. Then if I want to save a PDF, I can manually save it from the tab it opens in. But is there a better way to fix this?
Pśipowjesone fota wobrazowki

Wšykne wótegrona (1)

more options

Now tracked on Bugzilla here: https://bugzilla.mozilla.org/show_bug.cgi?id=1762955

(in case anyone finds this and is interested)