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

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: 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 365db2091618f0a557eeb9aac8eed091b03cbfa1..6933bcc9c3db84f170c4803d145acfa2b17ae7ad 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -206,10 +206,14 @@ WebPreferences::WebPreferences()
ignore_main_frame_overflow_hidden_quirk(false),
report_screen_size_in_physical_pixels_quirk(false),
resue_global_for_unowned_main_frame(false),
- autoplay_muted_videos_enabled(false),
progress_bar_completion(ProgressBarCompletion::LOAD_EVENT),
spellcheck_enabled_by_default(true),
#endif
+ autoplay_muted_videos_enabled(false),
+#if !defined(OS_ANDROID)
+ user_gesture_required_for_media_playback_in_cross_origin_iframes(false),
+#endif
+
#if defined(OS_ANDROID)
default_minimum_page_scale_factor(0.25f),
default_maximum_page_scale_factor(5.f),

Powered by Google App Engine
This is Rietveld 408576698