Web Inspector: reconnect websocket
Created attachment 140177 [details] Patch
*** Bug 85589 has been marked as a duplicate of this bug. ***
`InspectorFrontendHost.sendMessageToBackend = WebInspector.socket.send.bind(WebInspector.socket);` is a duplicate line. To refactor this, better to call a callback argument, on open event and `WebInspector.doLoadedDone();` on it.
This is what I mean: Change the function call to this: createWebSocket(function () { WebInspector.doLoadedDone(); }); and then in createWebSocket -> function createWebSocket(onopen) { ... WebInspector.socket.onopen = function() { InspectorFrontendHost.sendMessageToBackend = ... opopen.call(this); } }
Also your function definitions doesn't match the webkit style: http://www.webkit.org/coding/coding-style.html#braces
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.