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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexmos nits 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: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 18a88eb441030f40bbeb1fb55ee33ec8085b8d4f..ca47ca74d7b77fccd4b4e3edaf758944de31c14a 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -517,6 +517,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
OnDidAccessInitialDocument)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeOpener, OnDidChangeOpener)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeName, OnDidChangeName)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_DidEnforceStrictMixedContentChecking,
+ OnDidEnforceStrictMixedContentChecking)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidAssignPageId, OnDidAssignPageId)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeSandboxFlags,
OnDidChangeSandboxFlags)
@@ -1392,6 +1394,10 @@ void RenderFrameHostImpl::OnDidChangeName(const std::string& name) {
delegate_->DidChangeName(this, name);
}
+void RenderFrameHostImpl::OnDidEnforceStrictMixedContentChecking() {
+ frame_tree_node()->SetShouldEnforceStrictMixedContentChecking(true);
nasko 2015/12/17 17:16:33 Why do we have mismatched names of the methods? Th
estark 2015/12/17 22:19:10 Done.
+}
+
void RenderFrameHostImpl::OnDidAssignPageId(int32 page_id) {
// Update the RVH's current page ID so that future IPCs from the renderer
// correspond to the new page.

Powered by Google App Engine
This is Rietveld 408576698