Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / frame-deleted-in-document-open.html
blob6a5b189704191c819d75a3c55c38e7bda32ed621
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 window.onload = function()
9 frame = document.body.appendChild(document.createElement("iframe"));
11 frame.contentWindow.open = null;
12 frame.contentWindow.__defineGetter__("open", function() {
13 document.body.removeChild(frame);
14 return function() { };
15 });
16 frame.contentDocument.open(1, 1, 1, 1, 1);
18 </script>
19 </head>
20 <body>
21 This test passes if it doesn't crash.
22 </body>
23 </html>