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

Unified Diff: third_party/WebKit/LayoutTests/media/play-promise-crash.html

Issue 2850553002: Autoplay: use an autoplay policy setting in Blink. (Closed)
Patch Set: rebase Created 3 years, 7 months 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/LayoutTests/media/play-promise-crash.html
diff --git a/third_party/WebKit/LayoutTests/media/play-promise-crash.html b/third_party/WebKit/LayoutTests/media/play-promise-crash.html
index 2e1a546582997b65a3ebaa540d0eb5516dbe89e9..9e23035973f92c0c401c1060b71692a59af0a8c6 100644
--- a/third_party/WebKit/LayoutTests/media/play-promise-crash.html
+++ b/third_party/WebKit/LayoutTests/media/play-promise-crash.html
@@ -8,7 +8,7 @@
<script src="../resources/testharnessreport.js"></script>
<script src="media-file.js"></script>
<script>
- window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
+ window.internals.settings.setAutoplayPolicy('user-gesture-required');
async_test(function(t) {
var video = document.createElement('video');

Powered by Google App Engine
This is Rietveld 408576698