mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Manually set per-host limit in TestCookie.
This commit is contained in:
parent
fe558178c7
commit
3a007ea159
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user