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 7e93384f0b99cea593cc969970e56594e8cf159b..cd4754e01bc5c52aec2155e3f4a3d65526611723 100644 |
--- a/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp |
+++ b/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp |
@@ -182,6 +182,9 @@ void MixedContentChecker::count(Frame* frame, WebURLRequest::RequestContext requ |
// static |
bool MixedContentChecker::shouldBlockFetch(LocalFrame* frame, WebURLRequest::RequestContext requestContext, WebURLRequest::FrameType frameType, ResourceRequest::RedirectStatus redirectStatus, const KURL& url, MixedContentChecker::ReportingStatus reportingStatus) |
{ |
+ // Tests that all main resource loads (frame navigations) always send a report. |
+ DCHECK(frameType == WebURLRequest::FrameTypeNone || reportingStatus == SendReport); |
+ |
Frame* effectiveFrame = effectiveFrameForFrameType(frame, frameType); |
Frame* mixedFrame = inWhichFrameIsContentMixed(effectiveFrame, frameType, url); |
if (!mixedFrame) |