Closed
Bug 229785
Opened 21 years ago
Closed 21 years ago
tries download of page instead of rendering it
Categories
(Core Graveyard :: File Handling, defect)
Core Graveyard
File Handling
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.7alpha
People
(Reporter: heinrich, Assigned: Biesinger)
References
()
Details
Attachments
(2 files)
20.91 KB,
application/zip
|
Details | |
2.73 KB,
patch
|
bzbarsky
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208
If I type in that URL, the "how to handle" dialog occurs (download, default
application, open with application ...)
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Expected Results:
render the page without dialog.
Reporter | ||
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
confirming 20031230 Linux.
Web Sniffer shows it sends a content-disposition header:
[...]
content-disposition: name="68c77dcf.html"; filename="68c77dcf.html"
[...]
http://web-sniffer.net/?url=http%3A%2F%2Fwww.emprise.de%2Femprise.shtml&gzip=yes
fwiw, Opera 7.50 P1 (Linux) doesn't prompt user to save file and display it fine.
OS: Windows 2000 → All
Comment 3•21 years ago
|
||
(mid-air collision)
That's because the browsers a series of redirections, and the last one (the
text/html file that you want tos ee) is send with these headers :
HTTP/1.1 200 OK^M
Date: Wed, 31 Dec 2003 16:01:25 GMT^M
Server: Apache/1.3.23 (Unix) mod_jk/1.1.0 PHP/4.1.0^M
content-description: 68c77dcf.html^M
Set-Cookie: JSESSIONID=F2357289D8624034F9A510E335F2B4E1;Path=/^M
content-disposition: name="68c77dcf.html"; filename="68c77dcf.html"^M
content-location: 68c77dcf.html^M
Transfer-Encoding: chunked^M
Content-Type: text/html^M
So there's a "Content-Disposition" header inside, and that's why Mozilla tries
to download the file instead of displaying. The error is actually on the
webserver's side : it should use the 'inline' parameter, and not the
'attachment' (which is the default used by Mozilla, although it should really be
included too). Or it shouldn't use Content-Disposition at all, because it
doesn't belong here.
Bug 185618 ?
Assignee | ||
Comment 4•21 years ago
|
||
*** This bug has been marked as a duplicate of 185618 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 5•21 years ago
|
||
actually wait, we may want to support that. we already special case this:
Content-Disposition: filename=foo [...]
we may want to extend that to name=foo
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Assignee | ||
Updated•21 years ago
|
Assignee: general → file-handling
Status: UNCONFIRMED → NEW
Component: Browser-General → File Handling
Ever confirmed: true
QA Contact: general → ian
Assignee | ||
Comment 6•21 years ago
|
||
Assignee | ||
Comment 7•21 years ago
|
||
Comment on attachment 138207 [details] [diff] [review]
patch
I'd say we should do this.
Attachment #138207 -
Flags: review?(bz-vacation)
Assignee | ||
Updated•21 years ago
|
Assignee: file-handling → cbiesinger
Target Milestone: --- → mozilla1.7alpha
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
![]() |
||
Comment 8•21 years ago
|
||
Comment on attachment 138207 [details] [diff] [review]
patch
r=bzbarsky
Attachment #138207 -
Flags: review?(bz-vacation) → review+
Assignee | ||
Updated•21 years ago
|
Attachment #138207 -
Flags: superreview?(darin)
Comment 9•21 years ago
|
||
Comment on attachment 138207 [details] [diff] [review]
patch
sr=darin
Attachment #138207 -
Flags: superreview?(darin) → superreview+
Assignee | ||
Comment 10•21 years ago
|
||
thanks, checked in
alternate testcase url:
http://biesi.damowmow.com/mime.php?do=1&type=text/html&disposition=name=foo&filename="e=1&
(should be displayed with the patch, not without it)
Status: ASSIGNED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
http://www.emprise.de/emprise.shtml
and
http://biesi.damowmow.com/mime.php?do=1&type=text/html&disposition=name=foo&filename="e=1
both display fine using build 2004-06-30-08 on Windows XP.
Verified FIXED.
Status: RESOLVED → VERIFIED
Comment 12•14 years ago
|
||
I believe adding support for the (unspecced) "name" parameter was a bad idea; back when it was added, no other UA supported it. As of today, only Chrome does as well (apparently copying from Firefox), but in a slightly different way. See http://greenbytes.de/tech/tc2231/#attwithnamepct).
I think this should be removed from both FF and Chrome, unless somebody is willing to precisely specify what it does, and how it's better than "filename".
Updated•13 years ago
|
Hardware: x86 → All
Comment 13•13 years ago
|
||
(In reply to Julian Reschke from comment #12)
> I think this should be removed from both FF and Chrome, unless somebody is
> willing to precisely specify what it does, and how it's better than
> "filename".
-> Bug 776339
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•