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> |