Index: Source/modules/websockets/NewWebSocketChannelImpl.cpp |
diff --git a/Source/modules/websockets/NewWebSocketChannelImpl.cpp b/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
index 1c23e48d7cc0bb8e30d74da5e36a55676654a3cb..9a190b9b31890413b8d719532d9b15fd7b514a4d 100644 |
--- a/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
+++ b/Source/modules/websockets/NewWebSocketChannelImpl.cpp |
@@ -43,6 +43,7 @@ |
#include "platform/network/WebSocketHandshakeRequest.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebSerializedOrigin.h" |
#include "public/platform/WebSocketHandshakeRequestInfo.h" |
#include "public/platform/WebSocketHandshakeResponseInfo.h" |
#include "public/platform/WebString.h" |
@@ -136,8 +137,7 @@ void NewWebSocketChannelImpl::connect(const KURL& url, const String& protocol) |
for (size_t i = 0; i < protocols.size(); ++i) { |
webProtocols[i] = protocols[i]; |
} |
- String origin = executionContext()->securityOrigin()->toString(); |
- m_handle->connect(url, webProtocols, origin, this); |
+ m_handle->connect(url, webProtocols, *executionContext()->securityOrigin(), this); |
flowControlIfNecessary(); |
if (m_identifier) |
InspectorInstrumentation::didCreateWebSocket(document(), m_identifier, url, protocol); |