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

Unified Diff: content/renderer/render_frame_proxy.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 test 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: content/renderer/render_frame_proxy.cc
diff --git a/content/renderer/render_frame_proxy.cc b/content/renderer/render_frame_proxy.cc
index f753af4f52adc732b07372c3b3e195f9164310ae..b77de02fc97d50523fd4c457f129284151d6f8ef 100644
--- a/content/renderer/render_frame_proxy.cc
+++ b/content/renderer/render_frame_proxy.cc
@@ -182,6 +182,8 @@ void RenderFrameProxy::SetReplicatedState(const FrameReplicationState& state) {
web_frame_->setReplicatedOrigin(state.origin);
web_frame_->setReplicatedSandboxFlags(state.sandbox_flags);
web_frame_->setReplicatedName(blink::WebString::fromUTF8(state.name));
+ web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking(
+ state.should_enforce_strict_mixed_content_checking);
}
// Update the proxy's SecurityContext and FrameOwner with new sandbox flags
@@ -219,6 +221,9 @@ bool RenderFrameProxy::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateSandboxFlags, OnDidUpdateSandboxFlags)
IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad)
IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName)
+ IPC_MESSAGE_HANDLER(
+ FrameMsg_DidUpdateShouldEnforceStrictMixedContentChecking,
+ OnDidUpdateShouldEnforceStrictMixedContentChecking)
IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin)
IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetPageFocus)
IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
@@ -330,6 +335,12 @@ void RenderFrameProxy::OnDidUpdateName(const std::string& name) {
web_frame_->setReplicatedName(blink::WebString::fromUTF8(name));
}
+void RenderFrameProxy::OnDidUpdateShouldEnforceStrictMixedContentChecking(
+ bool should_enforce) {
+ web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking(
+ should_enforce);
+}
+
void RenderFrameProxy::OnDidUpdateOrigin(const url::Origin& origin) {
web_frame_->setReplicatedOrigin(origin);
}

Powered by Google App Engine
This is Rietveld 408576698