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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ 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 deb8ec24cdfbc34fa330bcf723c46a9c422650d1..afd16400368a7c9cfa82958b5399ab06dea1a7e1 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -14,7 +14,6 @@
#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"
@@ -130,9 +129,9 @@ void WebFrame::setFrameOwnerSandboxFlags(WebSandboxFlags flags)
toRemoteFrameOwner(owner)->setSandboxFlags(static_cast<SandboxFlags>(flags));
}
-bool WebFrame::shouldEnforceStrictMixedContentChecking() const
+WebInsecureRequestPolicy WebFrame::getInsecureRequestPolicy() const
{
- return toImplBase()->frame()->securityContext()->getInsecureRequestPolicy() & kBlockAllMixedContent;
+ return toImplBase()->frame()->securityContext()->getInsecureRequestPolicy();
}
void WebFrame::setFrameOwnerProperties(const WebFrameOwnerProperties& properties)
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698