[Webkit-unassigned] [Bug 28983] WebInspector: Wrap primitive values (as objects) in InspectorController::wrap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 8 08:03:49 PDT 2009


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





--- Comment #6 from Patrick Mueller <pmuellr at yahoo.com>  2009-09-08 08:03:49 PDT ---
(In reply to comment #5)

> Getting properties of an object is not a big deal given that you have a valid
> ObjectProxy for it. You are right, depending on the object id type, it has
> different lifetime. Like evaluation results are cached on the injected script
> side and that cache is being cleaned up when console is cleared. So you should
> be a bit careful when managing these object proxies.

It would probably be nice to have some documentation on this stuff, if it's not
already documented somewhere.

> But that is not the main reason I did not want you to use this API. I think
> there should be a limited number of UI primitives that we render
> page-side-objects with such as ObjectPropertySection. I think we should stick
> to them and make sure they are flexible enough. It was clear to me that
> ObjectPropertySection was solving your problem and I sent you a snippet with
> the code. If your requirements have changed since then, let us revisit it.

My concerns aren't related to the Watch Expressions support - it's more of a
generic concern regarding not having an API to get the properties of an object
in the target window.  I don't have a need for such a an API at the moment
(assuming I can get the ObjectPropertiesSection flavored version of Watch
Expressions to work), just thinking generically.

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