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

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: Created 4 years, 1 month 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: content/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index 656b8fb78f25e535e8a6834d33a8675d84a6471b..cbda488d61c7a07ed043344977d89982d83e4df4 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -239,10 +239,6 @@ const base::Feature kSendBeaconThrowForBlobWithNonSimpleType{
base::FEATURE_DISABLED_BY_DEFAULT};
#if defined(OS_ANDROID)
-// Allow videos to autoplay without a user gesture if muted.
-const base::Feature kAutoplayMutedVideos{"AutoplayMutedVideos",
- base::FEATURE_ENABLED_BY_DEFAULT};
-
// Use IME's own thread instead of using main UI thread. It also means that
// we will not use replica editor and do a round trip to renderer to synchronize
// with Blink data.
@@ -258,6 +254,16 @@ const base::Feature kWebPayments{"WebPayments",
#endif
+// Allow videos to autoplay without a user gesture if muted.
+const base::Feature kAutoplayMutedVideos{"AutoplayMutedVideos",
+ base::FEATURE_ENABLED_BY_DEFAULT};
+
+#if !defined(OS_ANDROID)
+const base::Feature kUserGestureRequiredForMediaPlaybackInCrossOriginIframes{
+ "UserGestureRequiredForMediaPlaybackInCrossOriginIframes",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+#endif
+
#if defined(OS_WIN)
// Emergency "off switch" for new Windows sandbox security mitigation,
// sandbox::MITIGATION_EXTENSION_POINT_DISABLE.

Powered by Google App Engine
This is Rietveld 408576698