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

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: falling back to adding a boolean flag 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 50fded8612ae5dbaaef01cd6bc0df976b3dc0eb2..e49a1c7df4aa150e1d030158457db570ffdce9d6 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -258,6 +258,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.

Powered by Google App Engine
This is Rietveld 408576698