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

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

Issue 2767983003: Initial Implementation of Iframe Attribute for Feature Policy (Part 4) (Closed)
Patch Set: Added container policy tests for vibrate 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 6ce5f226b931c1a98322c0777923226bef8cf188..5c6495fbc2d962d1abc9f99d3789d1e8033ad221 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