Open Bug 1617457 Opened 5 years ago Updated 3 years ago

"Open with" add the extension .txt , "Save file" does not

Categories

(Firefox :: File Handling, defect, P5)

Desktop
Windows 10
defect

Tracking

()

Tracking Status
firefox75 --- affected

People

(Reporter: alice0775, Unassigned)

References

Details

Reproducible: always

Steps To Reproduce:

  1. https://bugs.chromium.org/p/chromium/issues/detail?id=1022615
  2. Left mouse click on "Download" link
    3-a. "Open With" [Notepad(default)]
    --- observe file name
    3-b. "Save file"

Actual Results:
3-a: added .txt --- bug
3-b. saved with .html as expected

Expected Results:
File name should content-disposition filename attribute.

This probably has to do with the server lying and saying the file is a text/plain document, and we don't think .html is a valid extension for text/plain files.

If we change this, we would need to re-work how the "open with" option works, because it currently functions by just telling the OS "launch this file" [implied: with the default handler for the file extension]. If we kept the .html extension, it would open in the default handler for that extension (ie your default browser), which is also not correct. We'd need to reimplement that part of how launching files works. This is a large project so I don't see it being prioritized soon.

Priority: -- → P5
See Also: → 1679071
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.