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

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

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF. Created 4 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/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 59cbe436c80a945cff6f16a1e98cea75ad0b679d..eabce20cc84de3c7980cb26a988ae6c2675ceac3 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -982,6 +982,17 @@ void RenderFrameHostManager::OnEnforceInsecureRequestPolicy(
}
}
+void RenderFrameHostManager::OnEnforceInsecureNavigationsSet(
+ const std::vector<unsigned>& insecure_navigations_set) {
+ if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
+ return;
+
+ for (const auto& pair : proxy_hosts_) {
+ pair.second->Send(new FrameMsg_EnforceInsecureNavigationsSet(
+ pair.second->GetRoutingID(), insecure_navigations_set));
+ }
+}
+
void RenderFrameHostManager::OnDidUpdateFrameOwnerProperties(
const FrameOwnerProperties& properties) {
if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())

Powered by Google App Engine
This is Rietveld 408576698