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

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 811773002: Mixed Content: Implement strict mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests. Created 6 years 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 | « Source/core/loader/FrameLoader.h ('k') | Source/core/loader/MixedContentChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index d73762d3dbf03e4e6b14aa4a095aea1767ec6d14..6d13c340ae3efdb10973e49096e9b344f2676df9 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -1439,4 +1439,18 @@ SandboxFlags FrameLoader::effectiveSandboxFlags() const
return flags;
}
+bool FrameLoader::shouldEnforceStrictMixedContentChecking() const
+{
+ Frame* parentFrame = m_frame->tree().parent();
+ if (!parentFrame)
+ return false;
+
+ // FIXME: We need a way to propagate strict mixed content checking flags to
+ // out-of-process frames. For now, we'll always enforce.
+ if (!parentFrame->isLocalFrame())
+ return true;
+
+ return toLocalFrame(parentFrame)->document()->shouldEnforceStrictMixedContentChecking();
+}
+
} // namespace blink
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | Source/core/loader/MixedContentChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698