Closed Bug 480318 Opened 16 years ago Closed 16 years ago

[FIX]"Save Page As" doesn't give the filename of the bugzilla attachment

Categories

(Firefox :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

When using Save Page As with bugzilla attachments, the default filename is attachment.cgi, not the real file name.
This is totally my fault. Gotta love try/catch.
Assignee: nobody → bzbarsky
Blocks: 84106
Summary: "Save Page As" doesn't give the filename of the bugzilla attachment → [FIX]"Save Page As" doesn't give the filename of the bugzilla attachment
Attached patch I wish we had tests for this (deleted) — Splinter Review
Attachment #364318 - Flags: review?(gavin.sharp)
Attachment #364318 - Flags: review?(gavin.sharp) → review+
Comment on attachment 364318 [details] [diff] [review] I wish we had tests for this :(
Is there actually more than one expected error, so the catch block can't just check for that and rethrow any other errors?
Dunno. Looking at nsDOMWindowUtils::GetDocumentMetadata I wouldn't expect this code to ever get an exception to start with, so I have no idea why someone stuck a try/catch here.
Looks to me like we'll have to ask you either way: bug 263697 first, then bug 264757.
Ah, that first checkin had the try/catch because the "get to window utils" part could throw.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: