diff --git a/netwerk/cookie/src/nsCookieService.cpp b/netwerk/cookie/src/nsCookieService.cpp index cbb3d4531f94..a5b55b851d3b 100644 --- a/netwerk/cookie/src/nsCookieService.cpp +++ b/netwerk/cookie/src/nsCookieService.cpp @@ -558,9 +558,7 @@ nsCookieService::GetCookieStringFromHttp(nsIURI *aHostURI, --cookiePathLen; } - // the cookie linked list is in order of path length; longest to shortest. - // if the nsIURI path is shorter than the cookie path, then we know the path - // isn't on the cookie path. + // if the nsIURI path is shorter than the cookie path, don't send it back if (!StringBeginsWith(pathFromURI, Substring(cookie->Path(), 0, cookiePathLen))) { continue; }