Index: Source/core/loader/MixedContentChecker.cpp |
diff --git a/Source/core/loader/MixedContentChecker.cpp b/Source/core/loader/MixedContentChecker.cpp |
index ea0c172a059dc2be2d59240bafc1023be6195208..a95506608316f069b44f0143160f2e87ba232705 100644 |
--- a/Source/core/loader/MixedContentChecker.cpp |
+++ b/Source/core/loader/MixedContentChecker.cpp |
@@ -213,7 +213,7 @@ void MixedContentChecker::logToConsole(LocalFrame* frame, const KURL& url, WebUR |
} |
// static |
-bool MixedContentChecker::shouldBlockFetch(LocalFrame* frame, const ResourceRequest& resourceRequest, const KURL& url) |
+bool MixedContentChecker::shouldBlockFetch(LocalFrame* frame, const ResourceRequest& resourceRequest, const KURL& url, MixedContentChecker::ReportingStatus reportingStatus) |
{ |
// No frame, no mixed content: |
if (!frame) |
@@ -228,7 +228,7 @@ bool MixedContentChecker::shouldBlockFetch(LocalFrame* frame, const ResourceRequ |
return false; |
LocalFrame* localTop = toLocalFrame(top); |
- if (frame != localTop && shouldBlockFetch(localTop, resourceRequest, url)) |
+ if (frame != localTop && shouldBlockFetch(localTop, resourceRequest, url, reportingStatus)) |
return true; |
} |
@@ -280,7 +280,8 @@ bool MixedContentChecker::shouldBlockFetch(LocalFrame* frame, const ResourceRequ |
return true; |
}; |
- logToConsole(frame, url, resourceRequest.requestContext(), allowed); |
+ if (reportingStatus == SendReport) |
+ logToConsole(frame, url, resourceRequest.requestContext(), allowed); |
return !allowed; |
} |