Bug 16831 - console.log does not log to console
Summary: console.log does not log to console
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL: javascript:console.log("Hello world!")
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 18:24 PST by Collin Jackson
Modified: 2008-01-10 20:10 PST (History)
2 users (show)

See Also:


Attachments
Example page that calls console.log("Hello world!") (46 bytes, text/html)
2008-01-10 18:26 PST, Collin Jackson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Collin Jackson 2008-01-10 18:24:04 PST
When a web page includes the script

  console.log("Hello world!");

... the message is logged to the JavaScript console, but not the Web Inspector console.

Using XCode, it doesn't appear that WebCore::Console::log is being called. Instead, it appears that the call is being dispatched to some objective C function via ObjcInstance::invokeMethod (line 186 in objc_instance.mm), but we weren't able to step into the invocation using XCode.
Comment 1 Collin Jackson 2008-01-10 18:26:54 PST
Created attachment 18383 [details]
Example page that calls console.log("Hello world!")
Comment 2 Sam Weinig 2008-01-10 19:38:23 PST
Thanks for the bug report, but this is actually a bug in the Safari application.  If you feel so inclined, you can file it at bugreport.apple.com.
Comment 3 Collin Jackson 2008-01-10 20:10:25 PST
I've submitted a bug report to bugreport.apple.com: <rdar://problem/5682932>