Index: Source/modules/websockets/DocumentWebSocketChannel.cpp |
diff --git a/Source/modules/websockets/DocumentWebSocketChannel.cpp b/Source/modules/websockets/DocumentWebSocketChannel.cpp |
index 1e274ce29e9c4d1681922a72f1de88a74be4a630..67688efcbfa9b0a448c0be345501727e236af9e1 100644 |
--- a/Source/modules/websockets/DocumentWebSocketChannel.cpp |
+++ b/Source/modules/websockets/DocumentWebSocketChannel.cpp |
@@ -50,6 +50,7 @@ |
#include "platform/network/WebSocketHandshakeRequest.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebSecurityOrigin.h" |
#include "public/platform/WebSocketHandshakeRequestInfo.h" |
#include "public/platform/WebSocketHandshakeResponseInfo.h" |
#include "public/platform/WebString.h" |
@@ -160,7 +161,7 @@ bool DocumentWebSocketChannel::connect(const KURL& url, const String& protocol) |
if (executionContext()->isDocument() && document()->frame()) |
document()->frame()->loader().client()->dispatchWillOpenWebSocket(m_handle.get()); |
- m_handle->connect(url, webProtocols, *executionContext()->securityOrigin(), this); |
+ m_handle->connect(url, webProtocols, WebSecurityOrigin(executionContext()->securityOrigin()), this); |
flowControlIfNecessary(); |
if (m_identifier) { |