Title: [91348] trunk/Source/WebCore
Revision
91348
Author
yu...@chromium.org
Date
2011-07-20 01:59:48 -0700 (Wed, 20 Jul 2011)

Log Message

Web Inspector: don't send Console.enable messages in case of workers
https://bugs.webkit.org/show_bug.cgi?id=64853

Reviewed by Pavel Feldman.

* inspector/front-end/inspector.js:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (91347 => 91348)


--- trunk/Source/WebCore/ChangeLog	2011-07-20 08:08:44 UTC (rev 91347)
+++ trunk/Source/WebCore/ChangeLog	2011-07-20 08:59:48 UTC (rev 91348)
@@ -1,3 +1,12 @@
+2011-07-20  Yury Semikhatsky  <yu...@chromium.org>
+
+        Web Inspector: don't send Console.enable messages in case of workers
+        https://bugs.webkit.org/show_bug.cgi?id=64853
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/inspector.js:
+
 2011-07-20  Boris Smus  <s...@chromium.org>
 
         Add a resourceLink audit formatter to make it possible for devtools

Modified: trunk/Source/WebCore/inspector/front-end/inspector.js (91347 => 91348)


--- trunk/Source/WebCore/inspector/front-end/inspector.js	2011-07-20 08:08:44 UTC (rev 91347)
+++ trunk/Source/WebCore/inspector/front-end/inspector.js	2011-07-20 08:59:48 UTC (rev 91348)
@@ -560,8 +560,11 @@
 
     if (WebInspector.settings.monitoringXHREnabled.get())
         ConsoleAgent.setMonitoringXHREnabled(true);
-    ConsoleAgent.enable(this.console.setConsoleMessageExpiredCount.bind(this.console));
 
+    // There is no console agent for workers yet.
+    if (!WebInspector.WorkerManager.isWorkerFrontend())
+        ConsoleAgent.enable(this.console.setConsoleMessageExpiredCount.bind(this.console));
+
     DatabaseAgent.enable();
     DOMStorageAgent.enable();
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to