Title: [118921] trunk/Source/WebCore
Revision
118921
Author
[email protected]
Date
2012-05-30 07:20:05 -0700 (Wed, 30 May 2012)

Log Message

Web Inspector: Add trace() method to the WorkerConsole
https://bugs.webkit.org/show_bug.cgi?id=87656

Patch by Alexei Filippov <[email protected]> on 2012-05-30
Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshotProxy.js:
(WebInspector.HeapSnapshotRealWorker.prototype._messageReceived):
* inspector/front-end/HeapSnapshotWorker.js:
(WebInspector.WorkerConsole.prototype.trace):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (118920 => 118921)


--- trunk/Source/WebCore/ChangeLog	2012-05-30 13:57:32 UTC (rev 118920)
+++ trunk/Source/WebCore/ChangeLog	2012-05-30 14:20:05 UTC (rev 118921)
@@ -1,3 +1,15 @@
+2012-05-30  Alexei Filippov  <[email protected]>
+
+        Web Inspector: Add trace() method to the WorkerConsole
+        https://bugs.webkit.org/show_bug.cgi?id=87656
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/HeapSnapshotProxy.js:
+        (WebInspector.HeapSnapshotRealWorker.prototype._messageReceived):
+        * inspector/front-end/HeapSnapshotWorker.js:
+        (WebInspector.WorkerConsole.prototype.trace):
+
 2012-05-30  Kinuko Yasuda  <[email protected]>
 
         File.lastModifiedDate must return null if the modified time info is not available

Modified: trunk/Source/WebCore/inspector/front-end/HeapSnapshotProxy.js (118920 => 118921)


--- trunk/Source/WebCore/inspector/front-end/HeapSnapshotProxy.js	2012-05-30 13:57:32 UTC (rev 118920)
+++ trunk/Source/WebCore/inspector/front-end/HeapSnapshotProxy.js	2012-05-30 14:20:05 UTC (rev 118921)
@@ -65,11 +65,11 @@
             this.dispatchEventToListeners("message", message);
         else {
             if (message.object !== "console") {
-                console.log(WebInspector.UIString("Worker asks to call a method '%s' on unsupported object '%s'.", message.method, message.object));
+                console.log(WebInspector.UIString("Worker asks to call a method '%s' on an unsupported object '%s'.", message.method, message.object));
                 return;
             }
             if (message.method !== "log" && message.method !== "info" && message.method !== "error") {
-                console.log(WebInspector.UIString("Worker asks to call unsuported method '%s' on console object.", message.method));
+                console.log(WebInspector.UIString("Worker asks to call an unsupported method '%s' on the console object.", message.method));
                 return;
             }
             console[message.method].apply(window[message.object], message.arguments);

Modified: trunk/Source/WebCore/inspector/front-end/HeapSnapshotWorker.js (118920 => 118921)


--- trunk/Source/WebCore/inspector/front-end/HeapSnapshotWorker.js	2012-05-30 13:57:32 UTC (rev 118920)
+++ trunk/Source/WebCore/inspector/front-end/HeapSnapshotWorker.js	2012-05-30 14:20:05 UTC (rev 118921)
@@ -64,6 +64,11 @@
         this._postMessage("info", Array.prototype.slice.call(arguments));
     },
 
+    trace: function()
+    {
+        this.log(new Error().stack);
+    },
+
     _postMessage: function(method, args)
     {
         var rawMessage = {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to