Bug 31860 - Console.log() calls with multiple arguments are not passed to ChromeClient::addMessageToConsole
Summary: Console.log() calls with multiple arguments are not passed to ChromeClient::a...
Status: RESOLVED DUPLICATE of bug 26083
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2009-11-25 00:39 PST by Simon Hausmann
Modified: 2011-12-04 21:55 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Hausmann 2009-11-25 00:39:38 PST
The code in Console.cpp's addMessage() overload that operates on a ScriptCallStack suggests that console message like

    console.log("x equals", x, "right now")

is only passed to the web inspector and the stdout.

I think it should be passed to the ChromeClient, too, to allow embedding applications to fully catch the output of the Console API.
Comment 1 Gopal Raghavan 2010-11-04 13:04:55 PDT
Simon,
I have provided a fix to this issue. See bug 26083.
BR,
--
Gopal
Comment 2 Simon Hausmann 2011-12-04 21:55:27 PST

*** This bug has been marked as a duplicate of bug 26083 ***