Only the first console.log() argument is passed to OnConsoleMessage().

Issue #324 wontfix
Marshall Greenblatt created an issue

Original [issue 324](https://code.google.com/p/chromiumembedded/issues/detail?id=324) created by magreenblatt on 2011-09-01T17:26:30.000Z:

What steps will reproduce the problem? 1. Type "javascript:console.log('one','two','three');" without quotes in the cefclient address bar and hit enter. 2. Only the first argument will be passed to OnConsoleMessage().

What is the expected output? What do you see instead? All arguments should be passed to OnConsoleMessage().

Please use labels and text to provide additional information. WebKit intentionally passes only the first argument to ChromeClient::addMessageToConsole() in Console::addMessage(). Need to have a discussion with the WebKit devs to see if this is something they would be willing to change.

Comments (8)

  1. Chris Araman

    @magreenblatt, would you be open to our submitting a pull request for this issue? It's become a problem for our further use of CEF.

  2. Chris Araman

    Doesn't look like a CEF bug. I've traced it through CEF and Chromium into Blink. Not sure if that's the root of the issue yet, but I'll keep digging. Sorry for the noise. I'll follow up with the appropriate team once I find it.

  3. Tom Jakubowski Account Deactivated

    @chris-araman did you end up filing an issue upstream somewhere? if so, could you link to it here?

  4. Chris Araman

    Unfortunately, @tjakubowski_ob, I never found a root cause. I traced it down into Blink, but lost the trail there.

  5. Log in to comment