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

Unified Diff: third_party/WebKit/Source/web/WebSettingsImpl.cpp

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: third_party/WebKit/Source/web/WebSettingsImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSettingsImpl.cpp b/third_party/WebKit/Source/web/WebSettingsImpl.cpp
index 65d5d91f138baee4338e6f1e54bd639da4e0abc7..4d71ae6667b2f5015a52d86c607776f2850103a3 100644
--- a/third_party/WebKit/Source/web/WebSettingsImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSettingsImpl.cpp
@@ -649,6 +649,11 @@ void WebSettingsImpl::setCookieEnabled(bool enabled) {
m_settings->setCookieEnabled(enabled);
}
+void WebSettingsImpl::setCrossOriginMediaPlaybackRequiresUserGesture(
+ bool required) {
+ m_settings->setCrossOriginMediaPlaybackRequiresUserGesture(required);
+}
+
void WebSettingsImpl::setNavigateOnDragDrop(bool enabled) {
m_settings->setNavigateOnDragDrop(enabled);
}

Powered by Google App Engine
This is Rietveld 408576698