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

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

Issue 2497893006: Small fix to passive mixed-content reporting. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/MixedContentChecker.cpp
diff --git a/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp b/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp
index e7c86ab6dafa8964e344c2fdf83ec1b7fe40f82e..07a1f26e6c670ceb59ad85387f3a6a1f7753d7aa 100644
--- a/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp
+++ b/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp
@@ -263,10 +263,11 @@ bool MixedContentChecker::shouldBlockFetch(
switch (contextType) {
case WebMixedContent::ContextType::OptionallyBlockable:
- client->passiveInsecureContentFound(url);
allowed = !strictMode;
- if (allowed)
+ if (allowed) {
+ client->passiveInsecureContentFound(url);
client->didDisplayInsecureContent();
+ }
break;
case WebMixedContent::ContextType::Blockable: {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698