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

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: fix 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 70c881825f8883a6db53263dc9f27def90943d4f..303a3c1ab230c2733a85d62578c22827576a39b1 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -508,6 +508,9 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
OnDidAccessInitialDocument)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeOpener, OnDidChangeOpener)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeName, OnDidChangeName)
+ IPC_MESSAGE_HANDLER(
+ FrameHostMsg_DidChangeShouldEnforceStrictMixedContentChecking,
+ OnDidChangeShouldEnforceStrictMixedContentChecking)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidAssignPageId, OnDidAssignPageId)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeSandboxFlags,
OnDidChangeSandboxFlags)
@@ -1371,6 +1374,11 @@ void RenderFrameHostImpl::OnDidChangeName(const std::string& name) {
delegate_->DidChangeName(this, name);
}
+void RenderFrameHostImpl::OnDidChangeShouldEnforceStrictMixedContentChecking(
+ bool should_enforce) {
+ frame_tree_node()->SetShouldEnforceStrictMixedContentChecking(should_enforce);
+}
+
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