Remove support and tests for HSTS priming from the tree. Fixes #384

This commit is contained in:
Gaming4JC 2018-05-26 15:00:01 -04:00 committed by Roy Tam
commit d4ac94cf3e
56 changed files with 26 additions and 1812 deletions

View file

@ -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;
}