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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 months 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 7a13a828ab98c692dd2ef81743faed2bc8c9e591..6bd26259f897806cc0f83c1dd0be5d7d406b501a 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -552,8 +552,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeName, OnDidChangeName)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidAddContentSecurityPolicy,
OnDidAddContentSecurityPolicy)
- IPC_MESSAGE_HANDLER(FrameHostMsg_EnforceStrictMixedContentChecking,
- OnEnforceStrictMixedContentChecking)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_EnforceInsecureRequestPolicy,
+ OnEnforceInsecureRequestPolicy)
IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateToUniqueOrigin,
OnUpdateToUniqueOrigin)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidAssignPageId, OnDidAssignPageId)
@@ -1556,8 +1556,9 @@ void RenderFrameHostImpl::OnDidAddContentSecurityPolicy(
frame_tree_node()->AddContentSecurityPolicy(header);
}
-void RenderFrameHostImpl::OnEnforceStrictMixedContentChecking() {
- frame_tree_node()->SetEnforceStrictMixedContentChecking(true);
+void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy(
+ blink::WebInsecureRequestPolicy policy) {
+ frame_tree_node()->SetInsecureRequestPolicy(policy);
}
void RenderFrameHostImpl::OnUpdateToUniqueOrigin(
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_frame_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698