summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl/nsSiteSecurityService.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-03-27 15:07:34 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 13:15:58 +0200
commit69b4e77751013c0a4d2be25570bf6b0c33cf153d (patch)
tree8e11ebf79384b22943cbd85a6e70e9515463c40a /security/manager/ssl/nsSiteSecurityService.cpp
parent5657b5c53b7965600a367ffbd1dd3790b4e542c0 (diff)
downloadUXP-69b4e77751013c0a4d2be25570bf6b0c33cf153d.tar
UXP-69b4e77751013c0a4d2be25570bf6b0c33cf153d.tar.gz
UXP-69b4e77751013c0a4d2be25570bf6b0c33cf153d.tar.lz
UXP-69b4e77751013c0a4d2be25570bf6b0c33cf153d.tar.xz
UXP-69b4e77751013c0a4d2be25570bf6b0c33cf153d.zip
Issue #1498 - Part 3: Remove support for storing "knockout" values.
Diffstat (limited to 'security/manager/ssl/nsSiteSecurityService.cpp')
-rw-r--r--security/manager/ssl/nsSiteSecurityService.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp
index 922202527..ab2a3dd0b 100644
--- a/security/manager/ssl/nsSiteSecurityService.cpp
+++ b/security/manager/ssl/nsSiteSecurityService.cpp
@@ -326,11 +326,9 @@ nsSiteSecurityService::SetHSTSState(uint32_t aType,
return NS_OK;
}
- // If max-age is zero, the host is no longer considered HSTS. If the host was
- // preloaded, we store an entry indicating that this host is not HSTS, causing
- // the preloaded information to be ignored.
+ // If max-age is zero, the host is no longer considered HSTS.
if (maxage == 0) {
- return RemoveState(aType, aSourceURI, flags, true);
+ return RemoveState(aType, aSourceURI, flags);
}
MOZ_ASSERT((aHSTSState == SecurityPropertySet ||
@@ -358,8 +356,7 @@ nsSiteSecurityService::SetHSTSState(uint32_t aType,
}
NS_IMETHODIMP
-nsSiteSecurityService::RemoveState(uint32_t aType, nsIURI* aURI,
- uint32_t aFlags, bool force = false)
+nsSiteSecurityService::RemoveState(uint32_t aType, nsIURI* aURI, uint32_t aFlags)
{
// Child processes are not allowed direct access to this.
if (!XRE_IsParentProcess()) {