diff --git a/mozilla/netwerk/cookie/src/nsCookieService.cpp b/mozilla/netwerk/cookie/src/nsCookieService.cpp index 9e437ced09a..d153d80fa8f 100644 --- a/mozilla/netwerk/cookie/src/nsCookieService.cpp +++ b/mozilla/netwerk/cookie/src/nsCookieService.cpp @@ -90,7 +90,7 @@ static const char kOldCookieFileName[] = "cookies.txt"; // default limits for the cookie list. these can be tuned by the // network.cookie.maxNumber and network.cookie.maxPerHost prefs respectively. -static const PRUint32 kMaxNumberOfCookies = 1000; +static const PRUint32 kMaxNumberOfCookies = 3000; static const PRUint32 kMaxCookiesPerHost = 50; static const PRUint32 kMaxBytesPerCookie = 4096; static const PRUint32 kMaxBytesPerPath = 1024; diff --git a/mozilla/netwerk/test/TestCookie.cpp b/mozilla/netwerk/test/TestCookie.cpp index a1e70571147..6db1b71b4f5 100644 --- a/mozilla/netwerk/test/TestCookie.cpp +++ b/mozilla/netwerk/test/TestCookie.cpp @@ -762,9 +762,9 @@ main(PRInt32 argc, char *argv[]) rv[0] = CheckResult(cookie.get(), MUST_EQUAL, expected.get()); // test that cookies are evicted by order of lastAccessed time, if the limit on total cookies - // (1000) is reached + // (3000) is reached nsCAutoString host; - for (PRInt32 i = 0; i < 1010; ++i) { + for (PRInt32 i = 0; i < 3010; ++i) { host = NS_LITERAL_CSTRING("http://eviction."); host.AppendInt(i); host += NS_LITERAL_CSTRING(".tests/"); @@ -793,7 +793,7 @@ main(PRInt32 argc, char *argv[]) PRInt32 numInts = PR_sscanf(domain.get(), "eviction.%ld.tests", &hostNumber); if (numInts != 1 || hostNumber < 10) break; } - rv[2] = i == 1000; + rv[2] = i == 3000; allTestsPassed = PrintResult(rv, 3) && allTestsPassed;