Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / frameElement-accessor-context.html
blob2ced14163e4fb29347de3f0c0318e6136f3778d9
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 function test() {
7 iframe = document.querySelector('iframe');
8 shouldBeTrue('iframe instanceof HTMLIFrameElement');
9 shouldBeFalse('iframe instanceof iframe.contentWindow.HTMLIFrameElement');
10 finishJSTest();
12 description("Accessing window.frameElement from inside an iframe should not cause the &lt;iframe&gt;'s prototype to come from its own context.");
13 window.jsTestIsAsync = true;
14 </script>
15 </head>
16 <iframe onload="test();" srcdoc="
17 <script>
18 window.frameElement;
19 </script>
20 "></iframe>
21 </body>
22 </html>