Re: nsGenericElement::InsertBefore performance

Michiel van Leeuwen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Boris Zbarsky wrote:
> If sunbird is the only way to reproduce, you need 
> _much_ more clear instructions to reproduce (click-by-click instructions).

I _think_ that this can be reproduced outside sunbird, but I haven't got 
time to try right now. I hope to work on a reduced testcase some time 
soonish.
But for now I can give instructions on how you can get the call to 
.insertBefore triggered in sunbird:
- build and start sunbird
- switch to month view (menu: view -> month view, or the toolbarbutton)
- add an event (file -> new event, or double click on any day box)
- Save the event (button save and close)

The item should be in the view now, and thus call .insertBefore. The 
call to that is here:
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/calendar/base/content/calendar-month-view.xml&rev=1.103&root=/cvsroot&mark=534#498

If you want to re-trigger this call, you have to switch to a different 
month, and then switch back:
- use the forward navigation arrow just above the month view to switch 
to the next month
- Use the backward arrow to move back


Michiel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.