diff options
Diffstat (limited to 'net/cookies')
-rw-r--r-- | net/cookies/cookie_monster.cc | 5 | ||||
-rw-r--r-- | net/cookies/cookie_monster.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc index 8a609d8..63eff03 100644 --- a/net/cookies/cookie_monster.cc +++ b/net/cookies/cookie_monster.cc @@ -2667,8 +2667,9 @@ bool CookieMonster::CanonicalCookie::IsOnPath( if (path_.empty()) return false; - // The Mozilla code broke it into 3 cases, if it's strings lengths - // are less than, equal, or greater. I think this is simpler: + // The Mozilla code broke this into three cases, based on if the cookie path + // was longer, the same length, or shorter than the length of the url path. + // I think the approach below is simpler. // Make sure the cookie path is a prefix of the url path. If the // url path is shorter than the cookie path, then the cookie path diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h index b23dcfb..f648566 100644 --- a/net/cookies/cookie_monster.h +++ b/net/cookies/cookie_monster.h @@ -804,7 +804,7 @@ class CookieMonster::Delegate // Will be called when a cookie is added or removed. The function is passed // the respective |cookie| which was added to or removed from the cookies. // If |removed| is true, the cookie was deleted, and |cause| will be set - // to the reason for it's removal. If |removed| is false, the cookie was + // to the reason for its removal. If |removed| is false, the cookie was // added, and |cause| will be set to CHANGE_COOKIE_EXPLICIT. // // As a special case, note that updating a cookie's properties is implemented |