[Webkit-unassigned] [Bug 19874] Inspector should support inspect() in the command line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 19 20:55:51 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=19874





--- Comment #8 from Keishi Hattori <casey.hattori at gmail.com>  2009-07-19 20:55:50 PDT ---
(In reply to comment #6)
> Created an attachment (id=33057)
 --> (https://bugs.webkit.org/attachment.cgi?id=33057) [details]
>
> There is an extra printout in the Console which is always "undefined".  This is
> the print out of the return value of the inspect() function.  Can this printout
> be removed?

Firebug doesn't print the return value when it's undefined. We discussed it
here
https://bugs.webkit.org/show_bug.cgi?id=19932
I think we decided to keep it at least for now.

> I tried just adding "return o" at the end of the inspectObject function, but
> the console logs are different then the direct
> "inspectedWindow.console.log(o)".  Any other ideas?

This is another bug I've encountered before. It's blocking 
https://bugs.webkit.org/show_bug.cgi?id=17907

I've taken a look inside
JSValue JSQuarantinedObjectWrapper::call(ExecState* exec, JSObject* function,
JSValue thisValue, const ArgList& args)

It wraps the unwrapped return value with
JSInspectedObjectWrapper::wrapOutgoingValue but that's causing this.

If you change it to return the unwrappedResult, it will work as expected. But I
don't think this is OK because I suspect the return value should be wrapped for
security.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list