Index: Source/modules/websockets/DocumentWebSocketChannel.cpp |
diff --git a/Source/modules/websockets/DocumentWebSocketChannel.cpp b/Source/modules/websockets/DocumentWebSocketChannel.cpp |
index ff920bf40c0765c5c175d9caa0b2f8ab9147a8e5..458b4f6e771ce1586da64d69a38ec622f9f476f2 100644 |
--- a/Source/modules/websockets/DocumentWebSocketChannel.cpp |
+++ b/Source/modules/websockets/DocumentWebSocketChannel.cpp |
@@ -137,7 +137,7 @@ bool DocumentWebSocketChannel::connect(const KURL& url, const String& protocol) |
return false; |
if (executionContext()->isDocument() && document()->frame()) { |
- if (!document()->frame()->loader().mixedContentChecker()->canConnectInsecureWebSocket(document()->securityOrigin(), url)) |
+ if (MixedContentChecker::shouldBlockConnection(document()->frame(), url)) |
return false; |
} |
if (MixedContentChecker::isMixedContent(document()->securityOrigin(), url)) { |