зеркало из https://github.com/mozilla/gecko-dev.git
Manually set per-host limit in TestCookie.
This commit is contained in:
Родитель
596e6fe20e
Коммит
518384daba
|
@ -61,6 +61,7 @@ static const char kCookiesLifetimeDays[] = "network.cookie.lifetime.days";
|
|||
static const char kCookiesLifetimeCurrentSession[] = "network.cookie.lifetime.behavior";
|
||||
static const char kCookiesP3PString[] = "network.cookie.p3p";
|
||||
static const char kCookiesAskPermission[] = "network.cookie.warnAboutCookies";
|
||||
static const char kCookiesMaxPerHost[] = "network.cookie.maxPerHost";
|
||||
|
||||
static char *sBuffer;
|
||||
|
||||
|
@ -215,6 +216,8 @@ InitPrefs(nsIPrefBranch *aPrefBranch)
|
|||
aPrefBranch->SetIntPref(kCookiesLifetimeCurrentSession, 0);
|
||||
aPrefBranch->SetIntPref(kCookiesLifetimeDays, 1);
|
||||
aPrefBranch->SetBoolPref(kCookiesAskPermission, PR_FALSE);
|
||||
// Set the base domain limit to 50 so we have a known value.
|
||||
aPrefBranch->SetIntPref(kCookiesMaxPerHost, 50);
|
||||
}
|
||||
|
||||
class ScopedXPCOM
|
||||
|
|
Загрузка…
Ссылка в новой задаче