Bug 1349969 - WebSocket: don't throw for bad ports r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D96164
This commit is contained in:
@@ -1963,9 +1963,6 @@ nsresult WebSocketImpl::ParseURL(const nsAString& aURL) {
|
||||
rv = parsedURL->GetPort(&port);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_DOM_SYNTAX_ERR);
|
||||
|
||||
rv = NS_CheckPortSafety(port, scheme.get());
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_DOM_SECURITY_ERR);
|
||||
|
||||
nsAutoCString filePath;
|
||||
rv = parsedURL->GetFilePath(filePath);
|
||||
if (filePath.IsEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user