[Webkit-unassigned] [Bug 113427] Web Inspector: properly track main object for proto objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 28 05:53:14 PDT 2013


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





--- Comment #3 from Peter Rybin <prybin at chromium.org>  2013-03-28 05:51:24 PST ---
(In reply to comment #2)
> (From update of attachment 195359 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=195359&action=review
> 
> > Source/WebCore/ChangeLog:8
> > +        Parameter 'mainObjectId' is passed along from object to object when
> 
> What is it going to be used for? In most cases, all TreeElements belong to a single TreeOutline. You could store root object id there.

All according to bug description.
In your tree you could expand a path:
var1 -> __proto__ -> field1 -> __proto__ -> __proto__ -> *foo

"*foo" represents an accessor property (i.e. with getter and setter). In order to correctly calculate value of this property, we need to call getter and pass the "main object" (not the prototype object) as 'this'. "Main object" is a value of field1. We need to track it everywhere then.

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