Bug 16831

Summary: console.log does not log to console
Product: WebKit Reporter: Collin Jackson <collinj>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: abarth, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: javascript:console.log("Hello world!")
Attachments:
Description Flags
Example page that calls console.log("Hello world!") none

Collin Jackson
Reported 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.
Attachments
Example page that calls console.log("Hello world!") (46 bytes, text/html)
2008-01-10 18:26 PST, Collin Jackson
no flags
Collin Jackson
Comment 1 2008-01-10 18:26:54 PST
Created attachment 18383 [details] Example page that calls console.log("Hello world!")
Sam Weinig
Comment 2 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.
Collin Jackson
Comment 3 2008-01-10 20:10:25 PST
I've submitted a bug report to bugreport.apple.com: <rdar://problem/5682932>
Note You need to log in before you can comment on or make changes to this bug.