current implementation of the inspector api has some unnecessary complexity. As example WebInspector is requesting children nodes of a node by getChildNodes but DOM agent is actually pushing the child nodes via setChildNodes event call and send back an empty response message.
Created attachment 66488 [details] [patch] initial version.
Comment on attachment 66488 [details] [patch] initial version. Clearing flags on attachment: 66488 Committed r66732: <http://trac.webkit.org/changeset/66732>
All reviewed patches have been landed. Closing bug.
Comment on attachment 66488 [details] [patch] initial version. I don't think it is good idea and would vote to rolling this back. It is important that all the information is pushed to the DOMAgent.js by means of the same pushChildren method. Otherwise DOMAgent.js and InspectorDOMAgent may get easily our of sync. I do realize that API needs to be brushed up, but I'd start with pushDocument refactorings so that there is no DOM-related traffic unless requested.