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

Unified Diff: content/public/common/web_preferences.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/web_preferences.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index da49d445705c1a4020261f87061b081349d7bca0..13719049b246496c3758583f6297198d44a8801a 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -208,6 +208,8 @@ WebPreferences::WebPreferences()
resue_global_for_unowned_main_frame(false),
progress_bar_completion(ProgressBarCompletion::LOAD_EVENT),
spellcheck_enabled_by_default(true),
+#else
+ cross_origin_media_playback_requires_user_gesture(false),
#endif
#if defined(OS_ANDROID)
default_minimum_page_scale_factor(0.25f),

Powered by Google App Engine
This is Rietveld 408576698