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

Unified Diff: LayoutTests/media/video-controls-fullscreen-iframe.html

Issue 1058783006: Remove the allowfullscreen exemption for the video-specific fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: consistent quotes Created 5 years, 8 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 | « LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt ('k') | Source/core/dom/Fullscreen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-controls-fullscreen-iframe.html
diff --git a/LayoutTests/media/video-controls-fullscreen-iframe.html b/LayoutTests/media/video-controls-fullscreen-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..b8f1532f4ac15c534f145db33f2ebf6324d36830
--- /dev/null
+++ b/LayoutTests/media/video-controls-fullscreen-iframe.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>video controls fullscreen button in iframe without allowfullscreen attribute</title>
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ <script src="media-file.js"></script>
+ <script src="media-controls.js"></script>
+ </head>
+ <body>
+ <div id="log"></div>
+ <iframe srcdoc="<video controls>" width="400" height="300"></iframe>
+ <script>
+ async_test(function()
+ {
+ var iframe = document.querySelector("iframe");
+ iframe.onload = this.step_func(function()
+ {
+ var video = iframe.contentDocument.querySelector("video");
+ video.src = findMediaFile("video", "content/test");
+ video.onloadeddata = this.step_func(function()
+ {
+ // click the fullscreen button
+ var coords = mediaControlsButtonCoordinates(video, "fullscreen-button");
+ eventSender.mouseMoveTo(iframe.offsetLeft + coords[0], iframe.offsetTop + coords[1]);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ // wait for the fullscreenchange event
+ video.onwebkitfullscreenchange = this.step_func_done();
+ });
+ });
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt ('k') | Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698