Index: Source/modules/websockets/NewWebSocketChannelImpl.cpp |
diff --git a/Source/modules/websockets/NewWebSocketChannelImpl.cpp b/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
index a03e4b03da72ad1be0d6c01a38b8b19ba90a457c..53cd59b044667e434acfafe384525ad5d9589ebf 100644 |
--- a/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
+++ b/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
@@ -137,9 +137,6 @@ bool NewWebSocketChannelImpl::connect(const KURL& url, const String& protocol) |
if (executionContext()->isDocument() && document()->frame()) { |
if (!document()->frame()->loader().mixedContentChecker()->canConnectInsecureWebSocket(document()->securityOrigin(), url)) |
return false; |
- Frame* top = document()->frame()->tree().top(); |
- if (top != document()->frame() && !toLocalFrame(top)->loader().mixedContentChecker()->canConnectInsecureWebSocket(toLocalFrame(top)->document()->securityOrigin(), url)) |
- return false; |
} |
if (MixedContentChecker::isMixedContent(document()->securityOrigin(), url)) { |
String message = "Connecting to a non-secure WebSocket server from a secure origin is deprecated."; |