[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

loislo at chromium.org loislo at chromium.org
Wed Dec 22 16:21:07 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 546c520ce9dbc1124323f8bce239e309544cfbcf
Author: loislo at chromium.org <loislo at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Nov 22 16:46:45 2010 +0000

    2010-11-22  Ilya Tikhonovsky  <loislo at chromium.org>
    
            Reviewed by Pavel Feldman.
    
            Web Inspector: dump inspector protocol messages into console.
            Sometimes I need to dump inspector messages into console.
            It'd be much simple to have this code in repository and
            enable protocol dumping just by a flag.
    
            https://bugs.webkit.org/show_bug.cgi?id=49905
    
            * inspector/CodeGeneratorInspector.pm:
            * inspector/front-end/WorkersSidebarPane.js:
            (WebInspector.WorkersSidebarPane.prototype.reset):
            * inspector/front-end/inspector.js:
            (WebInspector_syncDispatch):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72531 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index a1eae97..352ea28 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2010-11-22  Ilya Tikhonovsky  <loislo at chromium.org>
+
+        Reviewed by Pavel Feldman.
+
+        Web Inspector: dump inspector protocol messages into console.
+        Sometimes I need to dump inspector messages into console.
+        It'd be much simple to have this code in repository and
+        enable protocol dumping just by a flag.
+
+        https://bugs.webkit.org/show_bug.cgi?id=49905
+
+        * inspector/CodeGeneratorInspector.pm:
+        * inspector/front-end/WorkersSidebarPane.js:
+        (WebInspector.WorkersSidebarPane.prototype.reset):
+        * inspector/front-end/inspector.js:
+        (WebInspector_syncDispatch):
+
 2010-11-22  Andreas Kling  <kling at webkit.org>
 
         Reviewed by Nikolas Zimmermann.
diff --git a/WebCore/inspector/CodeGeneratorInspector.pm b/WebCore/inspector/CodeGeneratorInspector.pm
index c2b0eb4..8a3654d 100644
--- a/WebCore/inspector/CodeGeneratorInspector.pm
+++ b/WebCore/inspector/CodeGeneratorInspector.pm
@@ -599,6 +599,9 @@ WebInspector.InspectorBackendStub.prototype = {
             request.seq = WebInspector.Callback.wrap(args[0]);
         }
 
+        if (window.dumpInspectorProtocolMessages)
+            console.log("frontend: " + JSON.stringify(request));
+
         var message = JSON.stringify(request);
         InspectorFrontendHost.sendMessageToBackend(message);
     }
diff --git a/WebCore/inspector/front-end/WorkersSidebarPane.js b/WebCore/inspector/front-end/WorkersSidebarPane.js
index 177cd15..658d57c 100644
--- a/WebCore/inspector/front-end/WorkersSidebarPane.js
+++ b/WebCore/inspector/front-end/WorkersSidebarPane.js
@@ -81,7 +81,6 @@ WebInspector.WorkersSidebarPane.prototype = {
 
     reset: function()
     {
-        InspectorBackend.removeAllScriptsToEvaluateOnLoad();
         this.setInstrumentation(this._enableWorkersCheckbox.checked);
         this._treeOutline.removeChildren();
         this._workers = {};
diff --git a/WebCore/inspector/front-end/inspector.js b/WebCore/inspector/front-end/inspector.js
index 33b370a..92807e6 100644
--- a/WebCore/inspector/front-end/inspector.js
+++ b/WebCore/inspector/front-end/inspector.js
@@ -658,6 +658,9 @@ WebInspector.dispatch = function(message) {
 // This function is purposely put into the global scope for easy access.
 WebInspector_syncDispatch = function(message)
 {
+    if (window.dumpInspectorProtocolMessages)
+        console.log("backend: " + ((typeof message === "string") ? message : JSON.stringify(message)));
+
     var messageObject = (typeof message === "string") ? JSON.parse(message) : message;
 
     var arguments = [];

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list