If it opens WebSocket and close in the same context (before receiving open event), it misses firing close event. var ws = new WebSocket(wsUrl); ws.onclose = function() { alert("closed"); } ws.close();
Created attachment 87269 [details] Patch
ap, abarth? It's been a month, this one looks like an easy review.
Comment on attachment 87269 [details] Patch Ok.
Sorry, overlooked it. Looks good to me, too - thanks for fixing this!
Comment on attachment 87269 [details] Patch Clearing flags on attachment: 87269 Committed r87135: <http://trac.webkit.org/changeset/87135>
All reviewed patches have been landed. Closing bug.