Index: LayoutTests/http/tests/misc/resources/detached-frame.html |
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/detached-frame.html b/LayoutTests/http/tests/misc/resources/detached-frame.html |
similarity index 50% |
copy from LayoutTests/http/tests/xmlhttprequest/resources/detached-frame.html |
copy to LayoutTests/http/tests/misc/resources/detached-frame.html |
index ff37a5529b478ec3a1b93a2bc4683b21db765440..43459c272ac900c64d1ab5c91eb379000bd7a8ee 100644 |
--- a/LayoutTests/http/tests/xmlhttprequest/resources/detached-frame.html |
+++ b/LayoutTests/http/tests/misc/resources/detached-frame.html |
@@ -1,21 +1,15 @@ |
-<head> |
<script> |
function test() { |
var xhr = new XMLHttpRequest; |
xhr.open("GET", "detached-frame.html"); |
xhr.send(); |
- window.parent.childDocument = document; // GC protect |
xhr.onreadystatechange = function() { |
if (xhr.readyState == xhr.DONE) { |
var parentWindow = window.parent; |
- parentWindow.document.body.removeChild(parentWindow.document.getElementsByTagName("iframe")[0]); |
- parentWindow.document.body.innerHTML += "<p>PASS: No crash.</p>"; |
- if (parentWindow.testRunner) |
+ parentWindow.document.body.innerHTML += ""; |
parentWindow.testRunner.notifyDone(); |
} |
} |
} |
</script> |
-</head> |
-<body onload="test()"> |
-</body> |
+<body onload="test()"> |