Found on TB version 22.214.171.124 (20070326):
window.addEventListener("load", enigMessengerStartup, false);
Now I see in Mac OS X that enigMessengerStartup() is called twice when Thunderbird starts. And not only that it's called twice: when called for the first time it seems that some of the XUL elements are not yet there. Specifically,
returns NULL on the first call, but works OK on the 2nd call. Of course I can work around it easily, but it means that any extension listening to the window.load event will have to work around it as well...
hmm, I wonder if the hidden window is firing an onload event?
It certainly should, since it expects to disable menu items from its onload handler.
Do we want to have most of mailWindowOverlay.xul be message(s)WindowOverlay.xul? We certainly could, have just a stripped down mailWindowOverlay.xul that overlays every single window (gaining things like having DOMi work when the addressbook is frontmost), and put the message content stuff in a separate overlay that people only interested in mail could attach themselves to instead.
Patrick, still an issue?
No, this must have been fixed years ago...