Bug 26209
Summary: | REGRESSION: Redirect to custom protocol adds "localhost/" suffix | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jonas Walldén <jonasw> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | annevk |
Priority: | P2 | Keywords: | HasReduction |
Version: | 525.x (Safari 3.2) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Jonas Walldén
Starting with OS X 10.5.7 server redirects to custom URL protocols is broken. (C.f. bug 15774 for a possibly related problem that has since been fixed.)
I've configured my server to respond with the following reply:
HTTP/1.1 302 Found
Location: mailto:foo@bar.com?subject=foo
which normally will bring up a mail with a subject of "foo". However, in current nightlies (tested with r44438) and Safari (5525.28.3 shipped with OS X 10.5.7) the mail subject is "foolocalhost/".
Please note that this concerns not only mailto: but custom URL protocols.
Capture from tcpdump:
GET /safari-redir/index.html HTTP/1.1
Host: localhost:6060
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_7; en-us) AppleWebKit/531.0+ (KHTML, like Gecko) Version/3.2.3 Safari/525.28.3
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: keep-alive
-------
HTTP/1.1 302 Found
Location: mailto:foo@bar.com?subject=foo
Vary: *
Server: Roxen/5.0.381-cvs
Accept-Ranges: bytes
Last-Modified: Fri, 05 Jun 2009 07:22:45 GMT
Content-Length: 5
Content-Type: text/html; charset=ISO-8859-1
Expires: Thu, 05 Jun 2008 01:22:45 GMT
Date: Fri, 05 Jun 2009 07:22:45 GMT
Connection: keep-alive
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Anne van Kesteren
I tried to reproduce this in a recent version of Safari and was not able to using essentially the same response as comment 0 suggests.