Default mouse cursor behavior should be auto-hide for full screen video with custom...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-iframe-without-allow-attribute-allowed-from-parent.html
1 <p>Test entering full screen security restrictions. An iframe without an allow attribute
2 is still permitted to fullscreen if the request comes from the containing document.</p>
3 <p>To test manually, press any key - the page should enter full screen mode.</p>
4 <script src="full-screen-test.js"></script>
5 <script>
6 window.onmessage = function (e) {
7     frame = document.getElementById('frame');
8
9     test("document.webkitFullscreenEnabled");
10     consoleWrite("iframe's webkitFullscreenEnabled should be false:");
11     iframeMessage = e.data;
12     test("iframeMessage == 'document.webkitFullscreenEnabled == false'");
13
14     waitForEvent(document, 'webkitfullscreenchange', function() {
15             consoleWrite("SUCCEED - entered full screen!");
16             endTest();
17     });
18
19     runWithKeyDown(function() {
20         setTimeout(function() {
21             consoleWrite("FAIL - did not enter full screen!");
22             endTest();
23         }, 50);
24         frame.webkitRequestFullScreen();
25     });
26 }
27 </script>
28 <iframe id="frame" src='data:text/html,
29     iframe
30     <script>
31         parent.postMessage("document.webkitFullscreenEnabled == " + document.webkitFullscreenEnabled, "*");
32     </script>
33     '>
34 </iframe>
35