Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / frameElement-crash.html
blobe24bf0f2e17e3247a2b03c75d9b3b994f63c8af2
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 function test() {
9 testPassed('Did not crash');
10 finishJSTest();
13 window.jsTestIsAsync = true;
14 description('Test that accessing window.frameElement from a custom iframe does not crash.');
16 var proto = Object.create(HTMLIFrameElement.prototype);
17 document.registerElement('x-iframe', {prototype: proto, extends: 'iframe'});
18 </script>
19 <iframe onload="test();" is="x-iframe" srcdoc="
20 <script>
21 window.frameElement;
22 </script>
23 "></iframe>
24 </body>
25 </html>