Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone...
[WebKit-https.git] / LayoutTests / http / tests / misc / resources / detached-frame.html
1 <script>
2 function test() {
3     var xhr = new XMLHttpRequest;
4     xhr.open("GET", "detached-frame.html");
5     xhr.send();
6     xhr.onreadystatechange = function() {
7         if (xhr.readyState == xhr.DONE) {
8             var parentWindow = window.parent;
9             parentWindow.document.body.innerHTML += "";
10             parentWindow.testRunner.notifyDone();
11         }
12     }
13 }
14 </script>
15 <body onload="test()">