summaryrefslogtreecommitdiffstats
path: root/net/cookies/cookie_monster.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/cookies/cookie_monster.cc')
-rw-r--r--net/cookies/cookie_monster.cc5
1 files changed, 3 insertions, 2 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