When document is unloaded, websocket opened in the document context should be closed. see https://bugs.webkit.org/show_bug.cgi?id=33248 Add tests to check browser doesn't crash.
Created attachment 48110 [details] Patch
Comment on attachment 48110 [details] Patch Moar tests!!!
Committed r54406: <http://trac.webkit.org/changeset/54406>