Closed Bug 609549 Opened 14 years ago Closed 13 years ago

inIDOMUtils needs getChildrenForNode to do what inDOMView does when a node is expanded to show children

Categories

(Other Applications :: DOM Inspector, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla7

People

(Reporter: crussell, Assigned: crussell)

References

Details

Attachments

(1 file, 5 obsolete files)

Attached patch crashy getChildrenForNode (obsolete) — Splinter Review
Firebug wants this, instead of the gotcha-filled nsIDOMDocumentXBL approach it's using.

Here's a patch that doesn't work.  It would take considerable hand-holding for me to see this through, since I have no idea what I'm doing regarding Gecko's smart pointers implementation.
>+  *aChildren = kids;

  kids.forget(aChildren);

should do the trick, I'd think.
Oh, and the point is I'm happy to hand-hold, review, explain why comment 1 makes sense, etc.
Firebug needs this to work properly, correct?  Seeing as how this is an API change, this may need to block beta 7...
blocking2.0: --- → ?
We can add this to a separate interface post-b7 if it's a must-have, fwiw.
Not blocking b7 on it then. If for some reason we haven't built when this is ready, we'll likely take it....but not a blocker.
blocking2.0: ? → ---
(In reply to comment #3)
> Firebug needs this to work properly, correct? 

No, this would be for Chromebug, XUL level inspection.
I guess this is the reason?
Assignee: nobody → Sevenspade
Attachment #488136 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #489952 - Flags: review?(bzbarsky)
Attachment #489952 - Attachment description: forget the pointer to the outparam so the nsCOMPtr destructors doesn't try to free it → forget the pointer to the outparam so the nsCOMPtr destructor doesn't try to free it
Attached patch API-level test (obsolete) — Splinter Review
Attachment #489956 - Attachment is obsolete: true
> I guess this is the reason?

Yes.

The C++ code is fine now, but we do need that separate interface if we want this to land for Gecko 2.0....
(In reply to comment #10)
> > I guess this is the reason?
> 
> Yes.
> 
> The C++ code is fine now, but we do need that separate interface if we want
> this to land for Gecko 2.0....

That seems like a bad idea.  I'm fine with it going into 2.next.  Maybe someone else disagrees though.
As long as we don't lose track of it, sure.  In that case, the patch looks fine except the interface needs a new uuid.
Isn't in the case that we are allowing the change for *some* interfaces?

Also, we can add it as a new interface, and merge it post-2.0 (and make it all the same object in terms of JS now).
> Isn't in the case that we are allowing the change for *some* interfaces?

I believe that at this point all interfaces are considered frozen unless the change is _really_ needed.
Whiteboard: [post-2.0]
Attachment #489952 - Flags: review?(bzbarsky)
Attached patch no bitrot (obsolete) — Splinter Review
Attachment #489952 - Attachment is obsolete: true
Attachment #489986 - Attachment is obsolete: true
Attachment #530971 - Flags: review?(bzbarsky)
Does this still need a UUID change, since it was changed for bug 557726?
Comment on attachment 530971 [details] [diff] [review]
no bitrot

Yes, this still needs an iid rev.  The rest looks fine.
Attachment #530971 - Flags: review?(bzbarsky) → review-
Attachment #530971 - Attachment is obsolete: true
Attachment #535733 - Flags: review?(bzbarsky)
Comment on attachment 535733 [details] [diff] [review]
New IID for inIDOMUtils

r=me
Attachment #535733 - Flags: review?(bzbarsky) → review+
Pushed:
http://hg.mozilla.org/mozilla-central/rev/d5d69f272f8f
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-cedar]
Target Milestone: --- → mozilla7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: