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

Unified Diff: content/renderer/render_frame_proxy.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/renderer/render_frame_proxy.cc
diff --git a/content/renderer/render_frame_proxy.cc b/content/renderer/render_frame_proxy.cc
index 09f344dc45bcba5cd4b516a64a8d7ad80b729476..1dd8b44fc186d75602a50e826db9943abef42548 100644
--- a/content/renderer/render_frame_proxy.cc
+++ b/content/renderer/render_frame_proxy.cc
@@ -212,8 +212,7 @@ void RenderFrameProxy::SetReplicatedState(const FrameReplicationState& state) {
web_frame_->setReplicatedSandboxFlags(state.sandbox_flags);
web_frame_->setReplicatedName(blink::WebString::fromUTF8(state.name),
blink::WebString::fromUTF8(state.unique_name));
- web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking(
- state.should_enforce_strict_mixed_content_checking);
+ web_frame_->setReplicatedInsecureRequestPolicy(state.insecure_request_policy);
web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin(
state.has_potentially_trustworthy_unique_origin);
@@ -267,8 +266,8 @@ bool RenderFrameProxy::OnMessageReceived(const IPC::Message& msg) {
OnAddContentSecurityPolicy)
IPC_MESSAGE_HANDLER(FrameMsg_ResetContentSecurityPolicy,
OnResetContentSecurityPolicy)
- IPC_MESSAGE_HANDLER(FrameMsg_EnforceStrictMixedContentChecking,
- OnEnforceStrictMixedContentChecking)
+ IPC_MESSAGE_HANDLER(FrameMsg_EnforceInsecureRequestPolicy,
+ OnEnforceInsecureRequestPolicy)
IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
OnSetFrameOwnerProperties)
IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin)
@@ -351,10 +350,9 @@ void RenderFrameProxy::OnResetContentSecurityPolicy() {
web_frame_->resetReplicatedContentSecurityPolicy();
}
-void RenderFrameProxy::OnEnforceStrictMixedContentChecking(
- bool should_enforce) {
- web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking(
- should_enforce);
+void RenderFrameProxy::OnEnforceInsecureRequestPolicy(
+ blink::WebInsecureRequestPolicy policy) {
+ web_frame_->setReplicatedInsecureRequestPolicy(policy);
}
void RenderFrameProxy::OnSetFrameOwnerProperties(
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | content/test/data/mixed-content/basic-passive-in-iframe-with-upgrade.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698