OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>Element ready check for child of a fullscreen iframe</title> | |
3 <script src="../../resources/testharness.js"></script> | |
4 <script src="../../resources/testharnessreport.js"></script> | |
5 <script src="../trusted-event.js"></script> | |
6 <div id="log"></div> | |
7 <iframe><!-- script inserts child here --></iframe> | |
8 <script> | |
9 // Verify that an iframe can itself go fullscreen, and that this doesn't | |
10 // influence the iframe ancestor test of the element ready check. | |
11 async_test(function(t) | |
12 { | |
13 var iframe = document.querySelector("iframe"); | |
14 document.onfullscreenchange = t.step_func(function() | |
15 { | |
16 assert_equals(document.fullscreenElement, iframe, "fullscreen element"); | |
17 var div = document.createElement("div"); | |
18 iframe.appendChild(div); | |
falken
2014/08/13 04:26:57
I might not understand iframes well enough. Why do
philipj_slow
2014/08/13 07:38:36
This is the core of our misunderstanding :) The sp
falken
2014/08/13 07:49:40
Ah, I somewhat suspected that. So wrt the spec tex
philipj_slow
2014/08/13 08:12:14
Right, if you click through to the definition of "
falken
2014/08/13 08:45:15
OK, I get it now. I actually had clicked through b
| |
19 assert_equals(div.parentNode, iframe, "FIXME bla bla"); | |
20 assert_equals(div.ownerDocument, document, "FIXME bla blass"); | |
falken
2014/08/13 04:26:57
FIXMEs :)
philipj_slow
2014/08/13 07:38:36
Will remove, they're paranoid checks I added while
| |
21 trusted_request(div, iframe.contentDocument.body); | |
22 document.onfullscreenchange = t.unreached_func("second fullscreenchange event"); | |
23 document.onfullscreenerror = t.step_func_done(); | |
24 }); | |
25 trusted_request(iframe); | |
26 }); | |
27 </script> | |
OLD | NEW |