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

Unified Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp

Issue 2499373002: Implementation for feature policy - fullscreen (Closed)
Patch Set: Bug fix: handling the case when frame parent does not exist 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
Index: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
index 51cabe384318c6df08f81d54e45eccead7a43177..fd05c583041e48437b95dcc2c63806478acb2448 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
@@ -99,6 +99,8 @@ const FeaturePolicy::Feature kDocumentDomain{
"domain", FeaturePolicy::FeatureDefault::EnableForAll};
const FeaturePolicy::Feature kDocumentWrite{
"docwrite", FeaturePolicy::FeatureDefault::EnableForAll};
+const FeaturePolicy::Feature kFullscreenFeature{
+ "fullscreen", FeaturePolicy::FeatureDefault::EnableForSelf};
const FeaturePolicy::Feature kGeolocationFeature{
"geolocation", FeaturePolicy::FeatureDefault::EnableForSelf};
const FeaturePolicy::Feature kMidiFeature{
@@ -162,9 +164,9 @@ const FeaturePolicy::FeatureList& FeaturePolicy::getDefaultFeatureList() {
DEFINE_STATIC_LOCAL(
Vector<const FeaturePolicy::Feature*>, defaultFeatureList,
({&kDocumentCookie, &kDocumentDomain, &kDocumentWrite,
- &kGeolocationFeature, &kMidiFeature, &kNotificationsFeature,
- &kPaymentFeature, &kPushFeature, &kSyncScript, &kSyncXHR, &kUsermedia,
- &kVibrateFeature, &kWebRTC}));
+ &kGeolocationFeature, &kFullscreenFeature, &kMidiFeature,
+ &kNotificationsFeature, &kPaymentFeature, &kPushFeature, &kSyncScript,
+ &kSyncXHR, &kUsermedia, &kVibrateFeature, &kWebRTC}));
return defaultFeatureList;
}

Powered by Google App Engine
This is Rietveld 408576698