blob: a8833dedbf78894db82f36504595183abbe6c275 [file] [log] [blame]
<p>Test for <a href="">bug 56264</a>:
Handle entering full screen security restrictions</p>
<p>To test manually, click the "Go full screen" button - the page should not enter full screen mode.</p>
<script src="full-screen-test.js"></script>
function runTest() {
var frame = document.getElementById('frame');
waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() {
consoleWrite("FAIL - entered full screen!");
waitForEventAndEnd(frame.contentDocument, 'webkitfullscreenerror', function() {
consoleWrite("SUCCEED - did not enter full screen!");
runWithKeyDown(function() {
<iframe id="frame" src="resources/inner.html" onload="runTest()">