Closed Bug 989224 Opened 12 years ago Closed 12 years ago

Note orphaned FragmentOrElements in CC logs

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: khuey, Assigned: khuey)

Details

(Whiteboard: [MemShrink])

Attachments

(1 file)

Attached patch PatchSplinter Review
It would be nice if this were obvious, rather than having to walk the parent chain manually. It seems like <xbl:content> is never in a document, so I filtered those out.
Attachment #8398381 - Flags: review?(bzbarsky)
Odd to filter out xbl:content. Consistency, please.
Note that I have a script, dom_grouper.py, that does this analysis, though the output isn't particularly great.
Comment on attachment 8398381 [details] [diff] [review] Patch r=me assuming the idea here is to make it easier to debug by pointing out DOM nodes being held by random script. If that's the goal, it makes sense to filter out xbl:content, but then please document that's why it's being done.
Attachment #8398381 - Flags: review?(bzbarsky) → review+
There can be also many other kinds of orphan nodes than those owned by JS. event.target for example.
Our experience is that nodes orphaned by C++ are much rarer than nodes orphaned directly by JS. xbl:content nodes are never exposed to JS (afaict) so I think it's reasonable to ignore them, especially since they always seem to be "orphaned".
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: