Closed
Bug 310024
Opened 19 years ago
Closed 6 months ago
When saving certain pages, no format options are given
Categories
(Camino Graveyard :: Downloading, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: alqahira, Unassigned)
References
()
Details
Attachments
(1 file)
|
5.79 KB,
patch
|
Details | Diff | Splinter Review |
When saving certain pages, like Bugzilla query results, the user is not offered a choice of file formats but instead must save the page as regular HTML. Further, the suggested filename has an extraneous trailing quote, e.g. bugs-2005-09-25.html" instead of bugs-2005-09-25.html (bugs-2005-09-25.html is what the content-disposition header returns as the filename). (The extraneous quote thing looks familiar, but I can't find the bug where it came up before....) Camino 2005092404 (v1.0a1+)
| Reporter | ||
Comment 2•19 years ago
|
||
I'm not seeing the extraneous quote in the suggested filename anymore, so whatever that was, it's gotten fixed along the way.
Comment 3•19 years ago
|
||
(In reply to comment #1) > might be easy for 1.0 > Might be? Psh... :-P
Target Milestone: Camino1.0 → Camino1.1
| Reporter | ||
Updated•18 years ago
|
Assignee: mikepinkerton → nobody
QA Contact: downloading
Target Milestone: Camino1.1 → Camino1.2
| Reporter | ||
Comment 4•18 years ago
|
||
Mass un-setting milestone per 1.6 roadmap. Filter on RemoveRedonkulousBuglist to remove bugspam. Developers: if you have a patch in hand for one of these bugs, you may pull the bug back to 1.6 *at that point*.
Target Milestone: Camino1.6 → ---
Comment 5•16 years ago
|
||
In case this helps someone later: url -I "https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=option&product=Camino&resolution=---" HTTP/1.1 200 OK Date: Tue, 28 Oct 2008 15:48:23 GMT Server: Apache/2.2.3 (Red Hat) Content-disposition: inline; filename="bugs-2008-10-28.html" Set-Cookie: LASTORDER=bugs.bug_status%2C%20bugs.priority%2C%20map_assigned_to.login_name%2C%20bugs.bug_id; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT Set-Cookie: BUGLIST=300408%3A303548%3A310024%3A317287%3A326589%3A340569%3A341977%3A356705%3A384691%3A409679%3A219056; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT X-Backend-Server: mrapp52 Content-Type: text/html; charset=UTF-8 I don't see anything particularly interesting in there myself.
Hardware: Macintosh → All
| Reporter | ||
Comment 6•13 years ago
|
||
Grr, this is even worse now; we don't even get the content-disposition filename suggested, but rather "buglist.cgi". I'll have to dump my logging back into SaveHeaderSniffer sometime and see what's going wrong here.
| Reporter | ||
Comment 7•13 years ago
|
||
Ugh, this is a mess. There are now multipls problems: 1) (Explaining the original bug as filed) The nsIURI we have fails the |isHTML| check, because mContentType is "multipart/x-mixed-replace" [1] 2) (Explaining the current sucky filename) mContentDisposition on the nsIURI is empty, which means we skip preferred filename option 1, getting the name from the HTTP headers [2] As a result of those two foibles, we fall back to getting the filename from the "file" portion of the URL, which is "buglist.cgi". I suppose we could work around the |isHTML| failure by adding "multipart/x-mixed-replace" to the isHTML content-types, but that seems wrong (and dangerous, given that the replaced content is not guaranteed to be HTML; that content-type is used, e.g., for old-fashioned still-image webcams). Firefox 3.6 gets this right, and their logic is/was very similar to ours (right down to the comments!)--but I can't find that anymore, so I don't know if this is related to our sniffing, or to something like bug 299372, or what⦠I've attached my logging patch so that anyone who wants to investigate these types of bugs can just apply the patch, without having to figure out all the crappy Gecko string types themselves ;-) [1] http://mxr.mozilla.org/camino/source/camino/src/download/SaveHeaderSniffer.mm#190 [2] http://mxr.mozilla.org/camino/source/camino/src/download/SaveHeaderSniffer.mm#211
| Reporter | ||
Comment 8•13 years ago
|
||
Oh, it's getDefaultFilename in http://mxr.mozilla.org/mozilla1.9.2/source/toolkit/content/contentAreaUtils.js#864 Note, though, that at the start of the process (way before getting to that function), in saveDocument(), they try again to get the content-disposition: http://mxr.mozilla.org/mozilla1.9.2/source/toolkit/content/contentAreaUtils.js#169 I'm not sure where that might be in our code; maybe that's the problem for this page-type?
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•