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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html

Issue 2389963002: Move setMediaPlaybackRequiresUserGesture to the cross-origin frame. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html b/third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html
index f72d21a92959b5449cf65f65f104410ef7a2193d..5ffd52c48ad5d18caa3cb2134bde9a3be2f223f5 100644
--- a/third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html
+++ b/third_party/WebKit/LayoutTests/http/tests/webaudio/resources/autoplay-crossorigin-iframe.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<body><span>click me</span></body>
<script>
+if ('internals' in window)
+ window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
+
function synthesizeClick(callback) {
document.onclick = callback;
window.parent.postMessage({ msg: 'clickme' }, '*');
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698