mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-26 18:57:21 +00:00
@@ -151,11 +151,6 @@ interface nsISiteSecurityService : nsISupports
|
||||
*/
|
||||
void clearAll();
|
||||
|
||||
/**
|
||||
* Removes all preloaded security state.
|
||||
*/
|
||||
void clearPreloads();
|
||||
|
||||
/**
|
||||
* Returns an array of sha256-hashed key pins for the given domain, if any.
|
||||
* If these pins also apply to subdomains of the given domain,
|
||||
|
||||
@@ -1101,17 +1101,6 @@ nsSiteSecurityService::ClearAll()
|
||||
return mSiteStateStorage->Clear();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSiteSecurityService::ClearPreloads()
|
||||
{
|
||||
// Child processes are not allowed direct access to this.
|
||||
if (!XRE_IsParentProcess()) {
|
||||
MOZ_CRASH("Child process: no direct access to nsISiteSecurityService::ClearPreloads");
|
||||
}
|
||||
|
||||
return mPreloadStateStorage->Clear();
|
||||
}
|
||||
|
||||
bool entryStateNotOK(SiteHPKPState& state, mozilla::pkix::Time& aEvalTime) {
|
||||
return state.mState != SecurityPropertySet || state.IsExpired(aEvalTime) ||
|
||||
state.mSHA256keys.Length() < 1;
|
||||
|
||||
@@ -239,9 +239,5 @@ function checkPreloadClear() {
|
||||
gSSService.clearAll();
|
||||
checkFail(certFromFile('b.preload.example.com-badca'), "b.preload.example.com");
|
||||
|
||||
// Check that the preloaded pins are cleared when we clear preloads
|
||||
gSSService.clearPreloads();
|
||||
checkOK(certFromFile('b.preload.example.com-badca'), "b.preload.example.com");
|
||||
|
||||
do_test_finished();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,6 @@ cert.InsecureSweepingOverride = function() {
|
||||
// clear collected HSTS and HPKP state
|
||||
// through the site security service
|
||||
sss.clearAll();
|
||||
sss.clearPreloads();
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user