mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1234875 - Remove alwaysAcceptSessionCookies pref. r=mak
This commit is contained in:
parent
d498fb860d
commit
2d5f815e6a
@ -45,7 +45,6 @@ static const uint32_t ACCEPT_FOR_N_DAYS = 3;
|
||||
static const bool kDefaultPolicy = true;
|
||||
static const char kCookiesLifetimePolicy[] = "network.cookie.lifetimePolicy";
|
||||
static const char kCookiesLifetimeDays[] = "network.cookie.lifetime.days";
|
||||
static const char kCookiesAlwaysAcceptSession[] = "network.cookie.alwaysAcceptSessionCookies";
|
||||
|
||||
static const char kCookiesPrefsMigrated[] = "network.cookie.prefsMigrated";
|
||||
// obsolete pref names for migration
|
||||
@ -76,7 +75,6 @@ nsCookiePermission::Init()
|
||||
if (prefBranch) {
|
||||
prefBranch->AddObserver(kCookiesLifetimePolicy, this, false);
|
||||
prefBranch->AddObserver(kCookiesLifetimeDays, this, false);
|
||||
prefBranch->AddObserver(kCookiesAlwaysAcceptSession, this, false);
|
||||
PrefChanged(prefBranch, nullptr);
|
||||
|
||||
// migration code for original cookie prefs
|
||||
@ -122,11 +120,6 @@ nsCookiePermission::PrefChanged(nsIPrefBranch *aPrefBranch,
|
||||
NS_SUCCEEDED(aPrefBranch->GetIntPref(kCookiesLifetimeDays, &val)))
|
||||
// save cookie lifetime in seconds instead of days
|
||||
mCookiesLifetimeSec = val * 24 * 60 * 60;
|
||||
|
||||
bool bval;
|
||||
if (PREF_CHANGED(kCookiesAlwaysAcceptSession) &&
|
||||
NS_SUCCEEDED(aPrefBranch->GetBoolPref(kCookiesAlwaysAcceptSession, &bval)))
|
||||
mCookiesAlwaysAcceptSession = bval;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -24,7 +24,6 @@ public:
|
||||
nsCookiePermission()
|
||||
: mCookiesLifetimeSec(INT64_MAX)
|
||||
, mCookiesLifetimePolicy(0) // ACCEPT_NORMALLY
|
||||
, mCookiesAlwaysAcceptSession(false)
|
||||
{}
|
||||
|
||||
bool Init();
|
||||
@ -40,7 +39,6 @@ private:
|
||||
|
||||
int64_t mCookiesLifetimeSec; // lifetime limit specified in seconds
|
||||
uint8_t mCookiesLifetimePolicy; // pref for how long cookies are stored
|
||||
bool mCookiesAlwaysAcceptSession; // don't prompt for session cookies
|
||||
};
|
||||
|
||||
// {EF565D0A-AB9A-4A13-9160-0644CDFD859A}
|
||||
|
@ -1858,7 +1858,6 @@ pref("network.cookie.cookieBehavior", 0); // Keep the old default of accep
|
||||
#endif
|
||||
pref("network.cookie.thirdparty.sessionOnly", false);
|
||||
pref("network.cookie.lifetimePolicy", 0); // 0-accept, 1-dontUse 2-acceptForSession, 3-acceptForNDays
|
||||
pref("network.cookie.alwaysAcceptSessionCookies", false);
|
||||
pref("network.cookie.prefsMigrated", false);
|
||||
pref("network.cookie.lifetime.days", 90); // Ignored unless network.cookie.lifetimePolicy is 3.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user