Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-iframe-without-allow-attribute-allowed-from-parent.html
blobda67e11c0ad4e73e9300941b3e9621efbbcb3247
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');
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!");
16 endTest();
17 });
19 runWithKeyDown(function() {
20 frame.webkitRequestFullScreen();
21 });
23 </script>
24 <iframe id="frame" src='data:text/html,
25 iframe
26 <script>
27 parent.postMessage("document.webkitFullscreenEnabled == " + document.webkitFullscreenEnabled, "*");
28 </script>
30 </iframe>