[Webkit-unassigned] [Bug 14515] document.cookie doesn't work when hostname is localhost; does work when hostname is 127.0.0.1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 31 10:10:11 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14515


jsp at pkc.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsp at pkc.com




------- Comment #4 from jsp at pkc.com  2007-08-31 10:10 PDT -------
I'm seeing this too (Mozilla/5.0 (Windows; U; Windows NT 5.1; en)
AppleWebKit/522.15.5 (KHTML, like Gecko) Version/3.0.3 Safari 522.15.5).  It's
not just "localhost" that doesn't work.  If I use my machine name in place of
"localhost" in a page URL, cookies created in script on the client do not
"stick."  They behave properly if I specify an IP address, whether it's the
loopback address or the machine's actual IP address.  Cookies created on the
server (using the same host string) also work.

Note that the attached tiny web server is only necessary if you want to see
cookies operating correctly (by specifying an IP address).  If you want to see
the broken behavior, you can just save the test case to disk and load it with a
file: URL.

I'd hazard a guess that the problem is related to IP addresses versus names
(which have to be resolved).


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list