[email protected] | b1b6320 | 2011-03-14 17:52:31 | [diff] [blame] | 1 | <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=56264">bug 56264</a>: |
2 | Handle entering full screen security restrictions</p> | ||||
[email protected] | ca0a1d31 | 2011-04-22 23:52:44 | [diff] [blame] | 3 | <p>To test manually, click the "Go full screen" button - the page should not enter full screen mode.</p> |
[email protected] | b1b6320 | 2011-03-14 17:52:31 | [diff] [blame] | 4 | <script src="full-screen-test.js"></script> |
5 | <script> | ||||
6 | function runTest() { | ||||
7 | var frame = document.getElementById('frame'); | ||||
8 | |||||
9 | waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() { | ||||
10 | consoleWrite("FAIL - entered full screen!"); | ||||
11 | endTest(); | ||||
12 | }); | ||||
13 | |||||
[email protected] | ecefa8b | 2012-01-12 19:15:27 | [diff] [blame] | 14 | waitForEventAndEnd(frame.contentDocument, 'webkitfullscreenerror', function() { |
15 | consoleWrite("SUCCEED - did not enter full screen!"); | ||||
16 | }); | ||||
17 | |||||
[email protected] | b1b6320 | 2011-03-14 17:52:31 | [diff] [blame] | 18 | runWithKeyDown(function() { |
[email protected] | b1b6320 | 2011-03-14 17:52:31 | [diff] [blame] | 19 | frame.contentDocument.documentElement.webkitRequestFullScreen(); |
20 | }); | ||||
21 | } | ||||
22 | </script> | ||||
[email protected] | ca0a1d31 | 2011-04-22 23:52:44 | [diff] [blame] | 23 | <iframe id="frame" src="resources/inner.html" onload="runTest()"> |
[email protected] | b1b6320 | 2011-03-14 17:52:31 | [diff] [blame] | 24 | </iframe> |