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

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

Issue 2651883008: Make content::FeaturePolicy implement WebFeaturePolicy, and use it in blink code (Closed)
Patch Set: Duplicate FP object rather than modifying in-place Created 3 years, 10 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_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 3beb56b79bd12456d919de368f5fdace3c017a25..a6c1b952758ac330a2358ee05f2bcbde597f47fe 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -3351,8 +3351,10 @@ void RenderFrameHostImpl::ResetFeaturePolicy() {
RenderFrameHostImpl* parent_frame_host = GetParent();
const FeaturePolicy* parent_policy =
parent_frame_host ? parent_frame_host->get_feature_policy() : nullptr;
+ // TODO(iclelland): Get the frame owner properties here to reset properly.
+ ParsedFeaturePolicyHeader container_policy;
feature_policy_ = FeaturePolicy::CreateFromParentPolicy(
- parent_policy, nullptr, last_committed_origin_);
+ parent_policy, container_policy, last_committed_origin_);
}
void RenderFrameHostImpl::Create(

Powered by Google App Engine
This is Rietveld 408576698