| Index: net/base/cookie_monster_unittest.cc
|
| diff --git a/net/base/cookie_monster_unittest.cc b/net/base/cookie_monster_unittest.cc
|
| index 1d5d9636133e595972cba215a120af87da0ba6bd..48843d10089a1a93753fd607a555f3a947893943 100644
|
| --- a/net/base/cookie_monster_unittest.cc
|
| +++ b/net/base/cookie_monster_unittest.cc
|
| @@ -406,6 +406,12 @@ TEST(CookieMonsterTest, TestIpAddress) {
|
| EXPECT_FALSE(cm.SetCookie(url_ip, "b=2; domain=.1.2.3.4"));
|
| EXPECT_FALSE(cm.SetCookie(url_ip, "c=3; domain=.3.4"));
|
| EXPECT_EQ("", cm.GetCookies(url_ip));
|
| + // It should be allowed to set a cookie if domain= matches the IP address
|
| + // exactly. This matches IE/Firefox, even though it seems a bit wrong.
|
| + EXPECT_FALSE(cm.SetCookie(url_ip, "b=2; domain=1.2.3.3"));
|
| + EXPECT_EQ("", cm.GetCookies(url_ip));
|
| + EXPECT_TRUE(cm.SetCookie(url_ip, "b=2; domain=1.2.3.4"));
|
| + EXPECT_EQ("b=2", cm.GetCookies(url_ip));
|
| }
|
| }
|
|
|
|
|