Skip to content

Commit 9f91238

Browse files
committed
Test active document check for requestFullscreen
1 parent 45c4685 commit 9f91238

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<title>Element ready check for containing iframe, element's document is not the active document</title>
3+
<script src="/resources/testharness.js"></script>
4+
<script src="/resources/testharnessreport.js"></script>
5+
<script src="../trusted-click.js"></script>
6+
<div id="log"></div>
7+
<iframe allowfullscreen></iframe>
8+
<script>
9+
async_test((t) => {
10+
onload = () => {
11+
var iframes = document.getElementsByTagName("iframe");
12+
trusted_request(iframes[0].contentDocument.body, document.body);
13+
window[0].location.href = '/common/blank.html';
14+
iframes[0].contentDocument.onfullscreenchange = t.unreached_func("fullscreenchange event");
15+
iframes[0].contentDocument.onfullscreenerror = t.step_func_done();
16+
};
17+
});
18+
</script>

0 commit comments

Comments
 (0)