diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-03-27 14:02:23 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 13:14:43 +0200 |
commit | 5657b5c53b7965600a367ffbd1dd3790b4e542c0 (patch) | |
tree | 3be782a6770917bf106ccb44f53eed93137b6c73 /security/manager/ssl | |
parent | 1037746d009ab5c0b20765a8032738ad189dc407 (diff) | |
download | UXP-5657b5c53b7965600a367ffbd1dd3790b4e542c0.tar UXP-5657b5c53b7965600a367ffbd1dd3790b4e542c0.tar.gz UXP-5657b5c53b7965600a367ffbd1dd3790b4e542c0.tar.lz UXP-5657b5c53b7965600a367ffbd1dd3790b4e542c0.tar.xz UXP-5657b5c53b7965600a367ffbd1dd3790b4e542c0.zip |
Issue #1498 - Part 2: 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
Diffstat (limited to 'security/manager/ssl')
-rw-r--r-- | security/manager/ssl/nsSiteSecurityService.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp index 359cf04b3..922202527 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"); } |