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

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

Issue 2767983003: Initial Implementation of Iframe Attribute for Feature Policy (Part 4) (Closed)
Patch Set: Codereview: nit + added more unit tests for container policy Created 3 years, 8 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: 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 7edbe0ea41e589a6f6af36098f9f052f8b78b0af..32bf9a14047d9e3377f8c9e0406fa5343b3cd46a 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -430,6 +430,8 @@ void WebRemoteFrameImpl::SetReplicatedFeaturePolicyHeader(
if (GetFrame() && GetFrame()->Owner()) {
container_policy = GetContainerPolicyFromAllowedFeatures(
GetFrame()->Owner()->AllowedFeatures(),
+ GetFrame()->Owner()->AllowFullscreen(),
+ GetFrame()->Owner()->AllowPaymentRequest(),
GetFrame()->GetSecurityContext()->GetSecurityOrigin());
}
GetFrame()->GetSecurityContext()->InitializeFeaturePolicy(

Powered by Google App Engine
This is Rietveld 408576698