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

Unified Diff: content/public/common/content_features.cc

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: nits 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
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index ff879647c77ed45de491a7d72d64f44e12ffcdeb..57f1ba6bab59e94fb6803fc4eecf3e7526abd1ed 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -254,6 +254,14 @@ const base::Feature kWebPayments{"WebPayments",
#endif
+#if !defined(OS_ANDROID)
+// Controls whether media playback in cross-origin iframes is enabled. The
+// feature overrides |kDisableGestureRequirementForMediaPlayback|.
+const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{
+ "CrossOriginMediaPlaybackRequiresUserGesture",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+#endif // !defined(OS_ANDROID)
+
#if defined(OS_WIN)
// Emergency "off switch" for new Windows sandbox security mitigation,
// sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698