You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.Runtime.InteropServices.JavaScript.JSException : InvalidAccessError: Failed to execute 'close' on 'WebSocket': The code must be either 1000, or between 3000 and 4999. 1003 is neither.
The following definitions are sourced from the IANA website [Ref]. Note that the 1xxx codes are only WebSocket-internal and not for the same meaning by the transported data (like when the application-layer protocol is invalid). The only permitted codes to be specified in Firefox are 1000 and 3000 to 4999 [Source, Bug].
Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
Issue Details
System.Runtime.InteropServices.JavaScript.JSException : InvalidAccessError: Failed to execute 'close' on 'WebSocket': The code must be either 1000, or between 3000 and 4999. 1005 is neither.
kjpou1
changed the title
[browser][websockets][tests] Test failures for invalid close codes
[browser][websockets][tests] Test failures for invalid WebSocketCloseStatus codes
Dec 4, 2020
see #45470 for tests
part of: #44666
Update:
Looks like an implementation detail of WebSockets.close() as provided by the browser.
Found reference to in reported issue of specific source code checking and verifying this code: https://searchfox.org/mozilla-central/rev/bf81d741ff5dd11bb364ef21306da599032fd479/dom/websocket/WebSocket.cpp#2533
Have been able to reproduce the FireFox report above on Chrome as well.
Any of the following codes will throw the error except for NormalClosure.
The text was updated successfully, but these errors were encountered: