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

Unified Diff: content/renderer/render_frame_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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 75ee58153b242cc359ea2d4a2a72834d5109f920..6ac2e38da88eee6f45f66938dda176abe4a409fa 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2821,8 +2821,9 @@ void RenderFrameImpl::didChangeName(const blink::WebString& name,
}
}
-void RenderFrameImpl::didEnforceStrictMixedContentChecking() {
- Send(new FrameHostMsg_EnforceStrictMixedContentChecking(routing_id_));
+void RenderFrameImpl::didEnforceInsecureRequestPolicy(
+ blink::WebInsecureRequestPolicy policy) {
+ Send(new FrameHostMsg_EnforceInsecureRequestPolicy(routing_id_, policy));
}
void RenderFrameImpl::didUpdateToUniqueOrigin(
@@ -4470,8 +4471,7 @@ void RenderFrameImpl::SendDidCommitProvisionalLoad(
// RenderFrameProxies in other processes.
params.origin = frame->document().getSecurityOrigin();
- params.should_enforce_strict_mixed_content_checking =
- frame->shouldEnforceStrictMixedContentChecking();
+ params.insecure_request_policy = frame->getInsecureRequestPolicy();
params.has_potentially_trustworthy_unique_origin =
frame->document().getSecurityOrigin().isUnique() &&
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698