Index: Source/modules/websockets/DOMWebSocket.cpp |
diff --git a/Source/modules/websockets/DOMWebSocket.cpp b/Source/modules/websockets/DOMWebSocket.cpp |
index ccf4d7f38900365194522e4dd85763a6fac176e1..e9762f7ea320687b250bf99890a3b75eb7c46231 100644 |
--- a/Source/modules/websockets/DOMWebSocket.cpp |
+++ b/Source/modules/websockets/DOMWebSocket.cpp |
@@ -53,7 +53,6 @@ |
#include "platform/Logging.h" |
#include "platform/blob/BlobData.h" |
#include "platform/heap/Handle.h" |
-#include "platform/weborigin/KnownPorts.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "public/platform/Platform.h" |
#include "wtf/Assertions.h" |
@@ -305,7 +304,8 @@ void DOMWebSocket::connect(const String& url, const Vector<String>& protocols, E |
exceptionState.throwDOMException(SyntaxError, "The URL contains a fragment identifier ('" + m_url.fragmentIdentifier() + "'). Fragment identifiers are not allowed in WebSocket URLs."); |
return; |
} |
- if (!portAllowed(m_url)) { |
+ |
+ if (!Platform::current()->portAllowed(m_url)) { |
m_state = CLOSED; |
exceptionState.throwSecurityError("The port " + String::number(m_url.port()) + " is not allowed."); |
return; |