{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2625","repository_url":"https://api.github.com/repos/w3c/web-platform-tests","labels_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2625/labels{/name}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2625/comments","events_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2625/events","html_url":"https://github.com/w3c/web-platform-tests/issues/2625","id":136593857,"number":2625,"title":"websockets' cookies/005.html doesn't pass in any browser","user":{"login":"jdm","id":27658,"avatar_url":"https://avatars.githubusercontent.com/u/27658?v=3","gravatar_id":"","url":"https://api.github.com/users/jdm","html_url":"https://github.com/jdm","followers_url":"https://api.github.com/users/jdm/followers","following_url":"https://api.github.com/users/jdm/following{/other_user}","gists_url":"https://api.github.com/users/jdm/gists{/gist_id}","starred_url":"https://api.github.com/users/jdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdm/subscriptions","organizations_url":"https://api.github.com/users/jdm/orgs","repos_url":"https://api.github.com/users/jdm/repos","events_url":"https://api.github.com/users/jdm/events{/privacy}","received_events_url":"https://api.github.com/users/jdm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/web-platform-tests/labels/websockets","name":"websockets","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-26T04:26:17Z","updated_at":"2016-03-01T09:21:30Z","closed_at":null,"body":"There are things about the test that look suspicious, like the `onclose` handler of `ws` supposedly being unreachable, yet the test directly calls `ws.close()`. However, Firefox, Chrome, Safari, and Servo all have an error event dispatched before that, which suggests that the output from the websocket server is invalid for some reason.\r\n\r\ncc @zcorpan "},"comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/issues/comments/190629606","html_url":"https://github.com/w3c/web-platform-tests/issues/2625#issuecomment-190629606","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2625","id":190629606,"user":{"login":"zcorpan","id":244772,"avatar_url":"https://avatars.githubusercontent.com/u/244772?v=3","gravatar_id":"","url":"https://api.github.com/users/zcorpan","html_url":"https://github.com/zcorpan","followers_url":"https://api.github.com/users/zcorpan/followers","following_url":"https://api.github.com/users/zcorpan/following{/other_user}","gists_url":"https://api.github.com/users/zcorpan/gists{/gist_id}","starred_url":"https://api.github.com/users/zcorpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcorpan/subscriptions","organizations_url":"https://api.github.com/users/zcorpan/orgs","repos_url":"https://api.github.com/users/zcorpan/repos","events_url":"https://api.github.com/users/zcorpan/events{/privacy}","received_events_url":"https://api.github.com/users/zcorpan/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T09:21:30Z","updated_at":"2016-03-01T09:21:30Z","body":"It passes in Opera 12 :-)\r\n\r\nI believe `onclose` should indeed be unreachable *before the test `done()`*. Invoking `close()` doesn't ever synchronously fire `close` per spec.\r\n\r\nI *think* you're supposed to get a `message` event before getting an `error` event, also (and so `onerror` should be unreachable, too), but I would be happy to review a pull request that cleans up the handlers. Testing the order of events should probably be separate tests."}}