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

Unified Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp

Issue 2858113002: Use replicated container policy in remote frames (Closed)
Patch Set: Remove null check Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
index 22e296b62586eb79f0ba8352fa68802afc2e7e9b..c9c5d51561a8f472835e2e2d52592a03e9dd0bbf 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -426,13 +426,8 @@ void WebRemoteFrameImpl::SetReplicatedFeaturePolicyHeader(
parent_frame->GetSecurityContext()->GetFeaturePolicy();
}
WebParsedFeaturePolicy container_policy;
- if (GetFrame() && GetFrame()->Owner()) {
- container_policy = GetContainerPolicyFromAllowedFeatures(
- GetFrame()->Owner()->AllowedFeatures(),
- GetFrame()->Owner()->AllowFullscreen(),
- GetFrame()->Owner()->AllowPaymentRequest(),
- GetFrame()->GetSecurityContext()->GetSecurityOrigin());
- }
+ if (GetFrame()->Owner())
+ container_policy = GetFrame()->Owner()->ContainerPolicy();
GetFrame()->GetSecurityContext()->InitializeFeaturePolicy(
parsed_header, container_policy, parent_feature_policy);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698