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

Unified Diff: third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.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/autoplay-non-whitelisted-scope.html
diff --git a/third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.html b/third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.html
index c1368db01744a90aeacd03883a6f16c9b1d793d3..d98b9b9db501ddff729d2a1891dfad3ade4abdd5 100644
--- a/third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.html
+++ b/third_party/WebKit/LayoutTests/media/autoplay-non-whitelisted-scope.html
@@ -13,7 +13,7 @@ test(function() {
"This test only works when run as a layout test!");
}, "Prerequisites to running the rest of the tests");
-window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
+window.internals.settings.setAutoplayPolicy('user-gesture-required');
window.internals.settings.setMediaPlaybackGestureWhitelistScope(
document.URL.substring(0, document.URL.lastIndexOf('/') + 1) + "foo/");

Powered by Google App Engine
This is Rietveld 408576698