Summary: | XMLHttpRequest does not handle set-cookie headers | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | John Sullivan <sullivan> | ||||||
Component: | XML | Assignee: | Alexey Proskuryakov <ap> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bugs-webkit, ian, mrowe | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 412 | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
John Sullivan
2005-06-10 13:46:51 PDT
Created attachment 2227 Comment on attachment 2227 Removed attachment as it contained login information. Created attachment 12186 [details]
test case
I cannot reproduce this problem with shipping Safari or TOT. Here is a test case, since we didn't have this behavior covered.
Test committed revision 18549. I'm seeing this test failing locally in a debug build of r18568. --- /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/LayoutTests/http/tests/xmlhttprequest/cookies-expected.txt 2007-01-04 10:51:32.000000000 +1100 +++ /tmp/layout-test-results/http/tests/xmlhttprequest/cookies-actual.txt 2007-01-04 12:57:04.000000000 +1100 @@ -1,4 +1,4 @@ Tests for bug 3420: XMLHttpRequest does not handle set-cookie headers. -SUCCESS +FAIL: the cookie was not set Could you please tell more about the failure? 1. Is this on Tiger or Leopard? 2. Does this test fail with shipping Safari? 3. Does it fail with a nightly build (without DRT)? I'm on Tiger. I've narrowed the problem down somewhat -- the test fails when the URL is <http://127.0.0.1:8000/xmlhttprequest/cookies.html>, but passes when it is <http://localhost:8000/xmlhttprequest/cookies.html>. The same behaviour occurs in DRT, Safari with WebKit 418.9.1, and Safari with ToT WebKit. Created attachment 12241 [details]
fix the test
The test failed if there were other cookies already present for 127.0.0.1. I accounted for that in .html, but not in .cgi; fixed.
Comment on attachment 12241 [details]
fix the test
r=me
Committed revision 18620. |