mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-29 18:24:47 +00:00
Issue #1498 - Part 6: Remove STS preloadlist pref.
This commit is contained in:
@@ -2037,8 +2037,6 @@ pref("network.proxy.autoconfig_retry_interval_max", 300); // 5 minutes
|
|||||||
|
|
||||||
// Master switch for HSTS usage (security <-> privacy tradeoff)
|
// Master switch for HSTS usage (security <-> privacy tradeoff)
|
||||||
pref("network.stricttransportsecurity.enabled", true);
|
pref("network.stricttransportsecurity.enabled", true);
|
||||||
// Use the HSTS preload list by default
|
|
||||||
pref("network.stricttransportsecurity.preloadlist", true);
|
|
||||||
|
|
||||||
// Use JS mDNS as a fallback
|
// Use JS mDNS as a fallback
|
||||||
pref("network.mdns.use_js_fallback", false);
|
pref("network.mdns.use_js_fallback", false);
|
||||||
|
|||||||
@@ -200,7 +200,6 @@ const uint64_t kSixtyDaysInSeconds = 60 * 24 * 60 * 60;
|
|||||||
|
|
||||||
nsSiteSecurityService::nsSiteSecurityService()
|
nsSiteSecurityService::nsSiteSecurityService()
|
||||||
: mMaxMaxAge(kSixtyDaysInSeconds)
|
: mMaxMaxAge(kSixtyDaysInSeconds)
|
||||||
, mUsePreloadList(true)
|
|
||||||
, mUseStsService(true)
|
, mUseStsService(true)
|
||||||
, mPreloadListTimeOffset(0)
|
, mPreloadListTimeOffset(0)
|
||||||
, mHPKPEnabled(false)
|
, mHPKPEnabled(false)
|
||||||
@@ -228,10 +227,6 @@ nsSiteSecurityService::Init()
|
|||||||
"security.cert_pinning.max_max_age_seconds", kSixtyDaysInSeconds);
|
"security.cert_pinning.max_max_age_seconds", kSixtyDaysInSeconds);
|
||||||
mozilla::Preferences::AddStrongObserver(this,
|
mozilla::Preferences::AddStrongObserver(this,
|
||||||
"security.cert_pinning.max_max_age_seconds");
|
"security.cert_pinning.max_max_age_seconds");
|
||||||
mUsePreloadList = mozilla::Preferences::GetBool(
|
|
||||||
"network.stricttransportsecurity.preloadlist", true);
|
|
||||||
mozilla::Preferences::AddStrongObserver(this,
|
|
||||||
"network.stricttransportsecurity.preloadlist");
|
|
||||||
mHPKPEnabled = mozilla::Preferences::GetBool(
|
mHPKPEnabled = mozilla::Preferences::GetBool(
|
||||||
"security.cert_pinning.hpkp.enabled", false);
|
"security.cert_pinning.hpkp.enabled", false);
|
||||||
mozilla::Preferences::AddStrongObserver(this,
|
mozilla::Preferences::AddStrongObserver(this,
|
||||||
@@ -1247,8 +1242,6 @@ nsSiteSecurityService::Observe(nsISupports *subject,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(topic, NS_PREFBRANCH_PREFCHANGE_TOPIC_ID) == 0) {
|
if (strcmp(topic, NS_PREFBRANCH_PREFCHANGE_TOPIC_ID) == 0) {
|
||||||
mUsePreloadList = mozilla::Preferences::GetBool(
|
|
||||||
"network.stricttransportsecurity.preloadlist", true);
|
|
||||||
mUseStsService = mozilla::Preferences::GetBool(
|
mUseStsService = mozilla::Preferences::GetBool(
|
||||||
"network.stricttransportsecurity.enabled", true);
|
"network.stricttransportsecurity.enabled", true);
|
||||||
mPreloadListTimeOffset =
|
mPreloadListTimeOffset =
|
||||||
|
|||||||
@@ -145,7 +145,6 @@ private:
|
|||||||
bool aIsPreload);
|
bool aIsPreload);
|
||||||
|
|
||||||
uint64_t mMaxMaxAge;
|
uint64_t mMaxMaxAge;
|
||||||
bool mUsePreloadList;
|
|
||||||
bool mUseStsService;
|
bool mUseStsService;
|
||||||
int64_t mPreloadListTimeOffset;
|
int64_t mPreloadListTimeOffset;
|
||||||
bool mHPKPEnabled;
|
bool mHPKPEnabled;
|
||||||
|
|||||||
Reference in New Issue
Block a user