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

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

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nasko comments Created 5 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
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index ba674ec4bd2262389974d23aa6a7575b8c16a65b..544b1768c1bb887a25127127e45d2851d427ca25 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1517,13 +1517,7 @@ bool FrameLoader::shouldEnforceStrictMixedContentChecking() const
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;
-
- ASSERT(toLocalFrame(parentFrame)->document());
- return toLocalFrame(parentFrame)->document()->shouldEnforceStrictMixedContentChecking();
+ return parentFrame->securityContext()->shouldEnforceStrictMixedContentChecking();
}
SecurityContext::InsecureRequestsPolicy FrameLoader::insecureRequestsPolicy() const
« no previous file with comments | « third_party/WebKit/Source/core/dom/SecurityContext.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698