Closed
Bug 480318
Opened 15 years ago
Closed 15 years ago
[FIX]"Save Page As" doesn't give the filename of the bugzilla attachment
Categories
(Firefox :: File Handling, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
794 bytes,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
When using Save Page As with bugzilla attachments, the default filename is attachment.cgi, not the real file name.
Assignee | ||
Comment 1•15 years ago
|
||
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
Assignee | ||
Comment 2•15 years ago
|
||
Attachment #364318 -
Flags: review?(gavin.sharp)
Updated•15 years ago
|
Attachment #364318 -
Flags: review?(gavin.sharp) → review+
Comment 3•15 years ago
|
||
Comment on attachment 364318 [details] [diff] [review] I wish we had tests for this :(
Comment 4•15 years ago
|
||
Is there actually more than one expected error, so the catch block can't just check for that and rethrow any other errors?
Assignee | ||
Comment 5•15 years ago
|
||
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.
Comment 6•15 years ago
|
||
Looks to me like we'll have to ask you either way: bug 263697 first, then bug 264757.
Assignee | ||
Comment 7•15 years ago
|
||
Ah, that first checkin had the try/catch because the "get to window utils" part could throw.
Assignee | ||
Comment 8•15 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/707ad9ee494a
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•