mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Remove support and tests for HSTS priming from the tree. Fixes #384
This commit is contained in:
parent
96a0af1be8
commit
d4ac94cf3e
56 changed files with 26 additions and 1812 deletions
|
|
@ -188,15 +188,6 @@ interface nsISiteSecurityService : nsISupports
|
|||
in int64_t aExpires, in unsigned long aPinCount,
|
||||
[array, size_is(aPinCount)] in string aSha256Pins,
|
||||
[optional] in boolean aIsPreload);
|
||||
|
||||
/**
|
||||
* Mark a host as declining to provide a given security state so that features
|
||||
* such as HSTS priming will not flood a server with requests.
|
||||
*
|
||||
* @param aURI the nsIURI that this applies to
|
||||
* @param aMaxAge lifetime (in seconds) of this negative cache
|
||||
*/
|
||||
[noscript] void cacheNegativeHSTSResult(in nsIURI aURI, in unsigned long long aMaxAge);
|
||||
};
|
||||
|
||||
%{C++
|
||||
|
|
|
|||
|
|
@ -355,14 +355,6 @@ nsSiteSecurityService::SetHSTSState(uint32_t aType,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSiteSecurityService::CacheNegativeHSTSResult(nsIURI* aSourceURI,
|
||||
uint64_t aMaxAge)
|
||||
{
|
||||
return SetHSTSState(nsISiteSecurityService::HEADER_HSTS, aSourceURI,
|
||||
aMaxAge, false, 0, SecurityPropertyNegative);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSiteSecurityService::RemoveState(uint32_t aType, nsIURI* aURI,
|
||||
uint32_t aFlags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue