[Webkit-unassigned] [Bug 75973] Web Inspector: DOMAgent.getDocument should take an optional frameId argument

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 10 11:51:15 PST 2012


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





--- Comment #1 from Pavel Feldman <pfeldman at chromium.org>  2012-01-10 11:51:15 PST ---
As of today, DOM agent is combining all of the frames into a single node hierarchy. I.e. frame owner element returns corresponding document's children as its own:

<iframe>
    <html>
    </html>
</iframe>

Historical reasons, the protocol was derived from the working implementation where all trees were combined into one. Not only it builds a single hierarchy, it also filters out intermediate nodes that correspond to #document DOM node.

I was thinking of refactoring it multiple times, but there were two things preventing me from doing so:
1. It is a fairly large effort
2. It puts more pressure on the front-end implementor that would need to manage multiple model trees in a single UI tree representation.

Now that I am working on the free flow DOM editing, I need a better mapping between resources and documents. So chances are high I'll need to complete this task this time.

As for the frameId, we already use it in the Page and Network domains. We just need to make it explicit and expose the frame hierarchy in the protocol.

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