2011-07-05 Ilya Tikhonovsky <loislo@chromium.org>
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jul 2011 13:10:11 +0000 (13:10 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jul 2011 13:10:11 +0000 (13:10 +0000)
        Web Inspector: WebInspector frontend reports a protocol error in remote debugging mode.
        https://bugs.webkit.org/show_bug.cgi?id=63935

        it was error generated for obsolete message "loaded" which was sent from frontend to backend.

        Reviewed by Yury Semikhatsky.

        * inspector/CodeGeneratorInspector.pm:
        * inspector/front-end/inspector.js:
        (WebInspector.loaded.WebInspector.socket.onopen):
        (WebInspector.loaded):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90394 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/CodeGeneratorInspector.pm
Source/WebCore/inspector/front-end/inspector.js

index 60590dab86a0f5c1c5e3c9b19c0d135bf520b334..2656385bc1fd052af5d601e8fa40dcee5fe210f8 100644 (file)
@@ -1,3 +1,17 @@
+2011-07-05  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Web Inspector: WebInspector frontend reports a protocol error in remote debugging mode.
+        https://bugs.webkit.org/show_bug.cgi?id=63935
+
+        it was error generated for obsolete message "loaded" which was sent from frontend to backend.
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/CodeGeneratorInspector.pm:
+        * inspector/front-end/inspector.js:
+        (WebInspector.loaded.WebInspector.socket.onopen):
+        (WebInspector.loaded):
+
 2011-07-05  Andrey Kosyakov  <caseq@chromium.org>
 
         Web Inspector: [refactoring] remove network-sidebar style, add network-log-grid
index 9fbdb701bb3331ae4a1d629ddb919a02277af0a8..d3c39e9d07a5bc6eed086736b47f842cadddd524 100644 (file)
@@ -920,10 +920,7 @@ InspectorBackendStub.prototype = {
 
     reportProtocolError: function(messageObject)
     {
-        var error = messageObject.error;
-        console.error(error.message + "(" + error.code + "): request with id = " + messageObject.id + " failed.");
-        for (var i = 0; i < error.data.length; ++i)
-            console.error("    " + error.data[i]);
+        console.error("Request with id = " + messageObject.id + " failed. " + messageObject.error);
     },
 
     runAfterPendingDispatches: function(script)
index 6e2040b08ff6923f0731276a349a085bfcd9cd35..2283fe4d8bd0dbb0ee1af3585646074cadfe6b66 100644 (file)
@@ -465,7 +465,6 @@ WebInspector.loaded = function()
         WebInspector.socket.onerror = function(error) { console.error(error); }
         WebInspector.socket.onopen = function() {
             InspectorFrontendHost.sendMessageToBackend = WebInspector.socket.send.bind(WebInspector.socket);
-            InspectorFrontendHost.loaded = WebInspector.socket.send.bind(WebInspector.socket, "loaded");
             WebInspector.doLoadedDone();
         }
         return;