Index: LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html |
diff --git a/LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html b/LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b9d57edf9f7a2f76eab3e01668f1c3d9a6fa1465 |
--- /dev/null |
+++ b/LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html |
@@ -0,0 +1,18 @@ |
+<head> |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+} |
+ |
+function runTest() { |
+ var frame = document.getElementById('frame'); |
+ var frameWindow = frame.contentWindow; |
+ window.document.body.removeChild(frame); |
+ frameWindow.location = "about:blank"; |
+} |
+</script> |
+ |
+<body onload='runTest()'> |
+<iframe id="frame" src="data:text/html,"></iframe> |
+This test passes if it doesn't crash. |
+</body> |