Index: Source/modules/websockets/MainThreadWebSocketChannel.cpp |
diff --git a/Source/modules/websockets/MainThreadWebSocketChannel.cpp b/Source/modules/websockets/MainThreadWebSocketChannel.cpp |
index 7ea61b141d1a15a22b372f18c327dbf65de398e9..c706f81296dffd9053b348ffe7203c19311c5791 100644 |
--- a/Source/modules/websockets/MainThreadWebSocketChannel.cpp |
+++ b/Source/modules/websockets/MainThreadWebSocketChannel.cpp |
@@ -94,7 +94,7 @@ bool MainThreadWebSocketChannel::connect(const KURL& url, const String& protocol |
ASSERT(!m_handle); |
ASSERT(!m_suspended); |
- if (m_document->frame() && !m_document->frame()->loader().mixedContentChecker()->canConnectInsecureWebSocket(m_document->securityOrigin(), url)) |
+ if (MixedContentChecker::shouldBlockWebSocket(m_document->frame(), url)) |
return false; |
if (MixedContentChecker::isMixedContent(m_document->securityOrigin(), url)) { |
String message = "Connecting to a non-secure WebSocket server from a secure origin is deprecated."; |