summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-03-27 14:02:23 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-03-27 14:02:23 +0100
commit09a229c702edd1b447fd5c0d344e56f6a53e52fd (patch)
tree92b7c841ba8b8fe53e56b8289d045d63a89b32a9
parent595c8d53df26ac6ae9a45b3a760a4bb8ca3cf370 (diff)
downloaduxp-09a229c702edd1b447fd5c0d344e56f6a53e52fd.tar.gz
Issue #1498 - Part 1: Stop persisting preload states.
Since we don't use preloading anymore for either HPKP or HSTS, we no longer need persistent storage in the profile for preload states. Tag #1280 also
-rw-r--r--security/manager/ssl/nsSiteSecurityService.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp
index 359cf04b37..9222025271 100644
--- a/security/manager/ssl/nsSiteSecurityService.cpp
+++ b/security/manager/ssl/nsSiteSecurityService.cpp
@@ -253,19 +253,14 @@ nsSiteSecurityService::Init()
mPreloadStateStorage =
mozilla::DataStorage::Get(NS_LITERAL_STRING("SecurityPreloadState.txt"));
bool storageWillPersist = false;
- bool preloadStorageWillPersist = false;
nsresult rv = mSiteStateStorage->Init(storageWillPersist);
if (NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}
- rv = mPreloadStateStorage->Init(preloadStorageWillPersist);
- if (NS_WARN_IF(NS_FAILED(rv))) {
- return rv;
- }
// This is not fatal. There are some cases where there won't be a
// profile directory (e.g. running xpcshell). There isn't the
// expectation that site information will be presisted in those cases.
- if (!storageWillPersist || !preloadStorageWillPersist) {
+ if (!storageWillPersist) {
NS_WARNING("site security information will not be persisted");
}