Index: LayoutTests/http/tests/websocket/resources/construct-in-detached-frame.html |
diff --git a/LayoutTests/http/tests/websocket/resources/construct-in-detached-frame.html b/LayoutTests/http/tests/websocket/resources/construct-in-detached-frame.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..995de75e36647c0f5e6c0295ccfe5123ea6c98ea |
--- /dev/null |
+++ b/LayoutTests/http/tests/websocket/resources/construct-in-detached-frame.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<script> |
+var parentWindow = parent; |
+var webSocketClass = WebSocket; |
+ |
+parentWindow.detachIframe(); |
+try { |
+new webSocketClass('ws://127.0.0.1/'); |
+} catch (e) { |
+parentWindow.console.log(e.message); |
+} |
+parentWindow.done(); |
+</script> |