[Webkit-unassigned] [Bug 17907] Inspector should support Firebug's magic $0 variable to access inspected node

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


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


Keishi Hattori <casey.hattori at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22794|0                           |1
        is obsolete|                            |
  Attachment #33221|                            |review?
               Flag|                            |




--- Comment #9 from Keishi Hattori <casey.hattori at gmail.com>  2009-07-21 15:33:29 PDT ---
Created an attachment (id=33221)
 --> (https://bugs.webkit.org/attachment.cgi?id=33221)
Implements $0, $1, $n

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.

-- 
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