User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19 Steps to reproduce: Create multiple instances (tabs) of the same websocket. Disconnecting or closing one tab will close all other connections. Actual results: All pages & sockets called the socket.onclose() function, closing all connections on all tabs. Expected results: Only the disconnected or closed tab should call the onclose function. Google Chrome handles this event properly.
Update: The closed sockets was caused by a server returning invalid frames. While this means there may be a bug that could close all open sockets on firefox at one time, it's probably not big a deal.