2011-11-02 04:03:04 +04:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=697636
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Test for Bug 697636</title>
|
|
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
|
|
</head>
|
2012-03-21 03:21:15 +04:00
|
|
|
<body>
|
2011-11-02 04:03:04 +04:00
|
|
|
|
2017-06-21 10:21:15 +03:00
|
|
|
<iframe id="f" srcdoc="<body text=green>1" allowfullscreen></iframe>
|
2011-11-02 04:03:04 +04:00
|
|
|
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=697636">Mozilla Bug 697636</a>
|
|
|
|
<p id="display"></p>
|
|
|
|
<div id="content" style="display: none">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<pre id="test">
|
|
|
|
<script type="application/javascript">
|
|
|
|
|
|
|
|
/** Test for Bug 697636 **/
|
|
|
|
|
|
|
|
var frameWin;
|
|
|
|
var e1;
|
|
|
|
|
2012-03-21 03:21:15 +04:00
|
|
|
function begin()
|
2011-11-02 04:03:04 +04:00
|
|
|
{
|
2017-06-21 10:21:15 +03:00
|
|
|
var f = document.getElementById("f");
|
|
|
|
frameWin = f.contentWindow;
|
2011-11-02 04:03:04 +04:00
|
|
|
e1 = frameWin.document.documentElement;
|
2017-06-21 10:21:15 +03:00
|
|
|
f.srcdoc = "<body text=blue onload='parent.b2()'>2";
|
2011-11-02 04:03:04 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function b2()
|
|
|
|
{
|
2016-02-17 03:47:11 +03:00
|
|
|
try {
|
|
|
|
e1.requestFullscreen();
|
|
|
|
} catch(e) {
|
|
|
|
opener.ok(false, "[hidden] Should not enter full-screen");
|
|
|
|
}
|
2011-11-02 04:03:04 +04:00
|
|
|
setTimeout(done, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
function done() {
|
2016-02-17 03:47:11 +03:00
|
|
|
opener.ok(!document.fullscreenElement, "[hidden] Should not have entered full-screen mode in hidden document.");
|
|
|
|
opener.ok(!e1.ownerDocument.fullscreenElement, "[hidden] Requesting owner should not have entered full-screen mode.");
|
2011-11-02 04:03:04 +04:00
|
|
|
opener.nextTest();
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
2011-12-07 01:59:39 +04:00
|
|
|
|
2011-11-02 04:03:04 +04:00
|
|
|
</html>
|