summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-30 12:47:56 +0200
committerGitHub <noreply@github.com>2018-05-30 12:47:56 +0200
commit0bc4fff184ecb1cff61dec0d450c4b7a0384a868 (patch)
tree7512b05f873bcfe8d0f79c34370d0bebad70a07f /image
parent4eb5b2baa62773279fb594ac53c1d368432fa75e (diff)
parenta66e6d874933612dc4682f1a834771d3ad240978 (diff)
downloaduxp-0bc4fff184ecb1cff61dec0d450c4b7a0384a868.tar.gz
Merge pull request #412 from g4jc/hsts_priming_removal_backport
Remove support and tests for HSTS priming from the tree. Fixes #384
Diffstat (limited to 'image')
-rw-r--r--image/imgLoader.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/image/imgLoader.cpp b/image/imgLoader.cpp
index 5e5ee78296..f7fb657bd1 100644
--- a/image/imgLoader.cpp
+++ b/image/imgLoader.cpp
@@ -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;
}