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>
6 window.onmessage = function (e) {
7 frame = document.getElementById('frame');
9 test("document.webkitFullscreenEnabled");
10 consoleWrite("iframe's webkitFullscreenEnabled should be false:");
11 iframeMessage = e.data;
12 test("iframeMessage == 'document.webkitFullscreenEnabled == false'");
14 waitForEvent(document, 'webkitfullscreenchange', function() {
15 consoleWrite("SUCCEED - entered full screen!");
19 runWithKeyDown(function() {
20 setTimeout(function() {
21 consoleWrite("FAIL - did not enter full screen!");
24 frame.webkitRequestFullScreen();
28 <iframe id="frame" src='data:text/html,
31 parent.postMessage("document.webkitFullscreenEnabled == " + document.webkitFullscreenEnabled, "*");