зеркало из https://github.com/mozilla/gecko-dev.git
23 строки
742 B
HTML
23 строки
742 B
HTML
<html>
|
|
<body onload='foo();'>
|
|
<script>
|
|
function foo() {
|
|
document.addEventListener('mozfullscreenerror',
|
|
function() {
|
|
parent.ok(true, "Request from an iframe without allowfullscreen should be denied");
|
|
parent.finish();
|
|
},
|
|
false);
|
|
document.addEventListener('mozfullscreenchange',
|
|
function() {
|
|
parent.ok(false, "Request from an iframe without allowfullscreen should be denied, but was granted!");
|
|
parent.finish();
|
|
},
|
|
false);
|
|
parent.is(document.mozFullScreenEnabled, false, "Full-screen should not be enabled, coz allowfullscreen isn't present.");
|
|
document.body.mozRequestFullScreen();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|