| Index: net/cookies/cookie_monster.cc
|
| diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
|
| index 8a609d824b5a4c8c711edad9bf9738c8c80d182b..63eff033910f4b9da46873c41918e89809c7c98a 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
|
|
|