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

Unified Diff: content/browser/frame_host/render_frame_host_manager.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_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 3e7cbe11ca6bf9114ed2f3e894e93a830f9c56ec..c8e6b11db668dca812fd76f3beb2eb81a4cd0ae5 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -965,14 +965,14 @@ void RenderFrameHostManager::OnDidResetContentSecurityPolicy() {
}
}
-void RenderFrameHostManager::OnEnforceStrictMixedContentChecking(
- bool should_enforce) {
+void RenderFrameHostManager::OnEnforceInsecureRequestPolicy(
+ blink::WebInsecureRequestPolicy policy) {
if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
return;
for (const auto& pair : proxy_hosts_) {
- pair.second->Send(new FrameMsg_EnforceStrictMixedContentChecking(
- pair.second->GetRoutingID(), should_enforce));
+ pair.second->Send(new FrameMsg_EnforceInsecureRequestPolicy(
+ pair.second->GetRoutingID(), policy));
}
}

Powered by Google App Engine
This is Rietveld 408576698