Bug 200429 another cookie deletion bug p=dwitte@stanford.edu r=mvl sr=darin
git-svn-id: svn://10.0.0.236/trunk@140637 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -582,9 +582,9 @@ cookie_FindCookiesFromHost(cookie_CookieStruct *aCookie,
|
||||
cookieInList = NS_STATIC_CAST(cookie_CookieStruct*, sCookieList->ElementAt(i));
|
||||
NS_ASSERTION(cookieInList, "corrupt cookie list");
|
||||
|
||||
// only count non-expired cookies
|
||||
// only count session or non-expired cookies
|
||||
if (cookie_IsInDomain(cookieInList->host, host, cookieInList->isDomain) &&
|
||||
!cookieInList->isSession && (nsInt64(cookieInList->expires) > aCurrentTime)) {
|
||||
(cookieInList->isSession || nsInt64(cookieInList->expires) > aCurrentTime)) {
|
||||
++aCountFromHost;
|
||||
|
||||
// check if we've found the previous cookie
|
||||
|
||||
Reference in New Issue
Block a user