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

Unified Diff: LayoutTests/fullscreen/resources/video.html

Issue 208483002: Implement the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cancel activation behavior in a failing fullscreen test Created 6 years, 9 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 | « no previous file | LayoutTests/media/activation-behavior.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/resources/video.html
diff --git a/LayoutTests/fullscreen/resources/video.html b/LayoutTests/fullscreen/resources/video.html
index 8d0e945272689ed7c9b7d7b51f763360cdd9a07d..aba93ee2f0ba17dbab2f61100ec0aa112efeec31 100644
--- a/LayoutTests/fullscreen/resources/video.html
+++ b/LayoutTests/fullscreen/resources/video.html
@@ -15,8 +15,10 @@ onload = function() {
video.src = mediaFile;
video.addEventListener('canplaythrough', canplaythrough);
video.addEventListener('webkitfullscreenchange', fullscreenChanged);
- video.onclick = function() {
+ video.onclick = function(event) {
video.webkitRequestFullscreen();
+ // cancel the activation behavior (click to play/pause)
+ event.preventDefault();
};
}
</script>
« no previous file with comments | « no previous file | LayoutTests/media/activation-behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698