Content-Disposition attachment vs 4xx status code from server




12 years ago
8 years ago


(Reporter: julian.reschke, Unassigned)


Windows 7

Firefox Tracking Flags

(Not tracked)





12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

When a Content-Disposition response header of type "attachment" is sent back with a non-2xx status code (such as 403), Firefox behaves as if everything is ok, potentially tricking the user to believe that the page (s)he wanted to save was actually saved.

Allowing to continue saving probably is good, but there really should be a warning displayed that the content is unlikely to be the one the user expects.

Reproducible: Always
Component: General → File Handling
QA Contact: general → file.handling
Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Whiteboard: CLOSEME 07/14
Version: unspecified → 2.0 Branch
Informing the user of the error seems reasonable in this case.
Whiteboard: CLOSEME 07/14
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME

Comment 4

9 years ago
I have added a test case at:

Firefox now displays an error message, which is good. The actual text "file not found" though is sub-optimal.


9 years ago
Version: 2.0 Branch → 3.6 Branch
Ever confirmed: true


8 years ago
OS: Windows XP → Windows 7
Hardware: x86 → x86_64
Version: 3.6 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.