You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2018. It is now read-only.
Currently investigating using Reps to display grid containers in the new Inspector Grid panel (Bug 1338298).
Most of the complex reps are expecting grips (generated from ObjectActors). But the inspector is usually dealing with NodeActors, not with ObjectActors.
Initially I wanted to add an actor method to instantiate an ObjectActor from a NodeActor. The more I investigate on this path the more it seems like ObjectActor & grips are tightly linked to the debugger domain. I thought grips were kind a of a generic/shared representation of values for actors, but I guess this was wrong.
convert (as much as possible) NodeFront to grips on the client side
Given what I understand about ObjectActors and grips I am tempted to go for the 1st option: reps should not force callers to use grips. Regarding the callbacks onInspectIconClick & onDOMNodeMouseOver, they should be called with the object used to create the rep. Meaning that if you create an ElementNode rep using NodeFronts, the argument of your callbacks will be a NodeFront.
I think it would be nicer to have an actual support for NodeFronts. If we don't implement this, then let's open a bug in bugzilla to cleanup the duplicated translation linked above.
Currently investigating using Reps to display grid containers in the new Inspector Grid panel (Bug 1338298).
Most of the complex reps are expecting grips (generated from ObjectActors). But the inspector is usually dealing with NodeActors, not with ObjectActors.
Initially I wanted to add an actor method to instantiate an ObjectActor from a NodeActor. The more I investigate on this path the more it seems like ObjectActor & grips are tightly linked to the debugger domain. I thought grips were kind a of a generic/shared representation of values for actors, but I guess this was wrong.
@nchevobbe suggested two options:
Given what I understand about ObjectActors and grips I am tempted to go for the 1st option: reps should not force callers to use grips. Regarding the callbacks onInspectIconClick & onDOMNodeMouseOver, they should be called with the object used to create the rep. Meaning that if you create an ElementNode rep using NodeFronts, the argument of your callbacks will be a NodeFront.
Thoughts @nchevobbe @janodvarko ?
The text was updated successfully, but these errors were encountered: