Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: Source/core/loader/MixedContentChecker.cpp

Issue 768753003: Downgrade the security of a secured page when plugins make insecure calls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout test for prefetching from insecure source added Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/MixedContentChecker.cpp
diff --git a/Source/core/loader/MixedContentChecker.cpp b/Source/core/loader/MixedContentChecker.cpp
index a95506608316f069b44f0143160f2e87ba232705..c5ebb0de645d5b71b8de8256b30523456a4f2451 100644
--- a/Source/core/loader/MixedContentChecker.cpp
+++ b/Source/core/loader/MixedContentChecker.cpp
@@ -272,7 +272,9 @@ bool MixedContentChecker::shouldBlockFetch(LocalFrame* frame, const ResourceRequ
break;
case ContextTypeShouldBeBlockable:
- return false;
+ allowed = true;
+ client->didDisplayInsecureContent();
+ break;
case ContextTypeBlockableUnlessLax:
// We map this to either OptionallyBlockable or Blockable above.
« no previous file with comments | « LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698