зеркало из https://github.com/mozilla/gecko-dev.git
25 строки
795 B
HTML
25 строки
795 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
</head>
|
|
<body onload="doRequestFullscreen()">
|
|
<script>
|
|
function doRequestFullscreen() {
|
|
function handler(evt) {
|
|
document.removeEventListener("mozfullscreenchange", handler);
|
|
document.removeEventListener("mozfullscreenerror", handler);
|
|
parent.is(evt.type, "mozfullscreenerror", "Request from " +
|
|
`document inside ${parent.testTargetName} should be denied`);
|
|
parent.continueTest();
|
|
}
|
|
parent.ok(!document.mozFullScreenEnabled, "Fullscreen " +
|
|
`should not be enabled in ${parent.testTargetName}`);
|
|
document.addEventListener("mozfullscreenchange", handler);
|
|
document.addEventListener("mozfullscreenerror", handler);
|
|
document.documentElement.mozRequestFullScreen();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|