[webkit-reviews] review requested: [Bug 17907] Inspector should support Firebug's magic $0 variable to access inspected node : [Attachment 33221] Implements $0, $1, $n

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 21 15:33:29 PDT 2009


Keishi Hattori <casey.hattori at gmail.com> has asked  for review:
Bug 17907: Inspector should support Firebug's magic $0 variable to access
inspected node
https://bugs.webkit.org/show_bug.cgi?id=17907

Attachment 33221: Implements $0, $1, $n
https://bugs.webkit.org/attachment.cgi?id=33221&action=review

------- Additional Comments from Keishi Hattori <casey.hattori at gmail.com>
I've finally figured this out.

JSInspectorCallbackWrapper wraps the return value with
JSInspectorCallbackWrapper::wrapOutgoingValue. It wraps it as a
JSInspectorCallbackWrapper, which blocks getProperty, setProperty,
deleteProperty, construct, hasInstance, and getPropertyNames.

I think this is overkill for objects from the "inspected window" but a
necessary security measure for objects from the "inspector".

$0 - Variable containing the most recently inspected object .
$1 - Variable containing the next most recently inspected object .
$n(n) - Returns the nth most recently inspected object that has been inspected.


More information about the webkit-reviews mailing list