Closed
Bug 87888
Opened 23 years ago
Closed 23 years ago
file extension in content-disposition header not used in file-picker filter
Categories
(SeaMonkey :: UI Design, defect, P2)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla0.9.3
People
(Reporter: bbaetz, Assigned: mscott)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Distilled from beta feedback:
news://news.mcom.com/200106261925.PAA18415@home-s45.websys.aol.com
Looking at the test case url above, the server is sending:
Content-disposition: attachment; filename=net2phone106.exe
When we bring up the save-as dialog box, we get the filename correct, but the
filter is incorrect - it displays .cgi, but it should be displaying .exe
I tried to poke through lxr to find cvs blame, and I think darin gets it. It
looks like nsExternalAppHandler::PromptForSaveToFile is using
mTempFileExtension, which is presumably wrong - at a guess, the
content-disposition stuff needs to update this.
Verified on trunk mozilla on linux, and this mornings comm bits on windows.
Reporter | ||
Comment 1•23 years ago
|
||
->mscott, after discussion with darin. I misread the cvs blame
Assignee: darin → mscott
Assignee | ||
Comment 2•23 years ago
|
||
Assignee | ||
Comment 3•23 years ago
|
||
accepting. I just posted the fix.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
Reporter | ||
Comment 4•23 years ago
|
||
Quick turnarround :)
Notes:
- The first bit of the patch seems unrelated.
- We'll still use the url name for the extention of the temp file, won't we? Not
that it matters, I suppose.
+ fileExt = mTempFileExtension.ToNewUnicode();
leaks, since nsAutoString::operator = does a copy.
Comment 5•23 years ago
|
||
See also bug 31519, "Save as: should add extension to match content type".
Blocks: 66836
Assignee | ||
Comment 6•23 years ago
|
||
this was checked in with my changes to 88066 last night. Thanks for catching the
memory leak.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•