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)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.3

People

(Reporter: bbaetz, Assigned: mscott)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

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.
->mscott, after discussion with darin. I misread the cvs blame
Assignee: darin → mscott
Attached patch the fix (deleted) — Splinter Review
accepting. I just posted the fix.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
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.
See also bug 31519, "Save as: should add extension to match content type".
Blocks: 66836
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
-> xp gui
Component: Networking: HTTP → XP Apps: GUI Features
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: