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

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

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). 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
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index a67de695a205b85c456d5c8f63254140222ec10f..de9074ae92e1f5ef5afe402d23e668f5b3a815a6 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -102,6 +102,7 @@ FrameTreeNode::FrameTreeNode(FrameTree* frame_tree,
unique_name,
blink::WebSandboxFlags::None,
false /* should enforce strict mixed content checking */,
+ std::vector<uint32_t>() /* insecure urls to upgrade */,
false /* is a potentially trustworthy unique origin */),
pending_sandbox_flags_(blink::WebSandboxFlags::None),
frame_owner_properties_(frame_owner_properties),
@@ -283,6 +284,16 @@ void FrameTreeNode::SetInsecureRequestPolicy(
replication_state_.insecure_request_policy = policy;
}
+void FrameTreeNode::SetInsecureNavigationsSet(
+ const std::vector<uint32_t>& insecure_navigations_set) {
+ DCHECK(std::is_sorted(insecure_navigations_set.begin(),
+ insecure_navigations_set.end()));
+ if (insecure_navigations_set == replication_state_.insecure_navigations_set)
+ return;
+ render_manager_.OnEnforceInsecureNavigationsSet(insecure_navigations_set);
+ replication_state_.insecure_navigations_set = insecure_navigations_set;
+}
+
void FrameTreeNode::SetPendingSandboxFlags(
blink::WebSandboxFlags sandbox_flags) {
pending_sandbox_flags_ = sandbox_flags;
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698