Closed Bug 109200 Opened 24 years ago Closed 24 years ago

elements aren't properly removed when using the removeelement attribute

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.8

People

(Reporter: mscott, Assigned: waterson)

References

Details

Attachments

(1 file)

If you attempt to apply a removelement attribute to a xul element, we don't properly unhook the element from the document before destroying it. According to Chris this is because, nsXULDocument::RemoveElement needs to pass PR_TRUE as the value of the aNotify parameter instead of PR_FALSE. In my case, I was attempting to remove some command sets which were slowing me down for message display. Changing this to TRUE did indeed improve matters as I then started seeing calls to nsXULCommandDispatcher::RemoveCommandUpdater which is what I expected. Although in my particular case, the updater wasn't properly getting removed still. But that's a separate issue. btw, I decided I don't need to use removeelement for my performance improvement in 108761 so I'm not blocked on this particular change anymore. So check in the change at your leisure Chris.
Status: NEW → ASSIGNED
Priority: -- → P3
Summary: elements aren't properly removed when using the removeelement attribute → elements aren't properly removed when using the removeelement attribute
Target Milestone: --- → mozilla0.9.7
We need to do a noisy notify when removing subtrees here so that we properly synchronize any crap that the document is observing (broadcasters, etc.)
Thanks for tracking this down, mscott.
Keywords: patch
OS: Windows 2000 → All
Hardware: PC → All
i am trying to edit the help menu for chatzilla, and have not been able to remove menuitems (about plug-ins). have not been able to add them very well either, but that is a story for a different bug. hope to see this landed soon.
Blocks: 76176
Comment on attachment 57181 [details] [diff] [review] noisy notification when removing content subtree r=ben@netscape.com what, me, buggy code? never! ;)
Attachment #57181 - Flags: review+
Any perf implications here? If not, sr=hyatt
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
what's the state on this? it has an r, and a pending sr. have performance issues been found, or is it waiting on someone to check? can someone give a status update please?
Didn't read this carefully. I'll check this in today.
Target Milestone: mozilla0.9.9 → mozilla0.9.8
Fix checked in. Sorry I dropped the ball!
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: patch
Resolution: --- → FIXED
thank you
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: