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:
neil%parkwaycc.co.uk
2003-04-03 09:15:31 +00:00
parent e9c650e124
commit 62cdc897b8

View File

@@ -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