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

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 2040133003: Replace SecurityContext::InsecureRequestsPolicy with WebInsecureRequestPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@combine-uir-block
Patch Set: Ugh. Created 4 years, 6 months 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
Index: third_party/WebKit/Source/web/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index 89a33fd0ba39ed929698f0a8f40e2c83e1748942..deb8ec24cdfbc34fa330bcf723c46a9c422650d1 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -14,6 +14,7 @@
#include "core/page/Page.h"
#include "platform/UserGestureIndicator.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebInsecureRequestPolicy.h"
#include "public/web/WebElement.h"
#include "public/web/WebFrameOwnerProperties.h"
#include "public/web/WebSandboxFlags.h"
@@ -131,7 +132,7 @@ void WebFrame::setFrameOwnerSandboxFlags(WebSandboxFlags flags)
bool WebFrame::shouldEnforceStrictMixedContentChecking() const
{
- return toImplBase()->frame()->securityContext()->shouldEnforceStrictMixedContentChecking();
+ return toImplBase()->frame()->securityContext()->getInsecureRequestPolicy() & kBlockAllMixedContent;
}
void WebFrame::setFrameOwnerProperties(const WebFrameOwnerProperties& properties)

Powered by Google App Engine
This is Rietveld 408576698