From 35f88825379ab5476581d7c69bbe9c7444e61180 Mon Sep 17 00:00:00 2001 From: "timothy@apple.com" Date: Mon, 2 Mar 2009 21:38:39 +0000 Subject: [PATCH] Fixes a regression caused by splitting the input and output of console commands. https://bugs.webkit.org/show_bug.cgi?id=24293 Reviewed by Kevin McCullough. * inspector/front-end/Console.js: (WebInspector.Console.prototype.addMessage): Don't treat ConsoleCommandResult as a normal ConsoleMessage when appending. This prevents resetting repeatCounts incorrectly. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41365 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/ChangeLog | 12 ++++++++++++ WebCore/inspector/front-end/Console.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 60da9b053c07..40061965a169 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,15 @@ +2009-03-02 Timothy Hatcher + + Fixes a regression caused by splitting the input and output of console commands. + + https://bugs.webkit.org/show_bug.cgi?id=24293 + + Reviewed by Kevin McCullough. + + * inspector/front-end/Console.js: + (WebInspector.Console.prototype.addMessage): Don't treat ConsoleCommandResult as a + normal ConsoleMessage when appending. This prevents resetting repeatCounts incorrectly. + 2009-03-02 Timothy Hatcher Make exception messages and logged Error objects display consistently. diff --git a/WebCore/inspector/front-end/Console.js b/WebCore/inspector/front-end/Console.js index dca90be030ce..8eb9186728ef 100644 --- a/WebCore/inspector/front-end/Console.js +++ b/WebCore/inspector/front-end/Console.js @@ -141,7 +141,7 @@ WebInspector.Console.prototype = { addMessage: function(msg) { - if (msg instanceof WebInspector.ConsoleMessage) { + if (msg instanceof WebInspector.ConsoleMessage && !(msg instanceof WebInspector.ConsoleCommandResult)) { msg.totalRepeatCount = msg.repeatCount; msg.repeatDelta = msg.repeatCount; -- 2.36.0