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)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla0.9.8
People
(Reporter: mscott, Assigned: waterson)
References
Details
Attachments
(1 file)
|
589 bytes,
patch
|
bugs
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Updated•24 years ago
|
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
| Assignee | ||
Comment 1•24 years ago
|
||
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.)
| Assignee | ||
Comment 2•24 years ago
|
||
Thanks for tracking this down, mscott.
Comment 3•24 years ago
|
||
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.
Comment 4•24 years ago
|
||
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+
Comment 5•24 years ago
|
||
Any perf implications here? If not, sr=hyatt
| Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.8
| Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Comment 6•24 years ago
|
||
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?
| Assignee | ||
Comment 7•24 years ago
|
||
Didn't read this carefully. I'll check this in today.
Target Milestone: mozilla0.9.9 → mozilla0.9.8
| Assignee | ||
Comment 8•24 years ago
|
||
Fix checked in. Sorry I dropped the ball!
Comment 9•24 years ago
|
||
thank you
You need to log in
before you can comment on or make changes to this bug.
Description
•