mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +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
|
|
@ -607,19 +607,6 @@ ShouldLoadCachedImage(imgRequest* aImgRequest,
|
|||
}
|
||||
}
|
||||
|
||||
bool sendPriming = false;
|
||||
bool mixedContentWouldBlock = false;
|
||||
rv = nsMixedContentBlocker::GetHSTSPrimingFromRequestingContext(contentLocation,
|
||||
aLoadingContext, &sendPriming, &mixedContentWouldBlock);
|
||||
if (NS_FAILED(rv)) {
|
||||
return false;
|
||||
}
|
||||
if (sendPriming && mixedContentWouldBlock) {
|
||||
// if either of the securty checks above would cause a priming request, we
|
||||
// can't load this image from the cache, so go ahead and return false here
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue