When I start my sunbird-derivative application, I get the thunderbird main
window appearing along with my application's main window.
Here's what I have done...
1. Added "ac_add_options --enable-ldap" and
"ac_add_options --enable-mailnews" to my .mozconfig.
2. Copied all of mail/components to my applications components directory,
and modified makefiles appropriately.
3. Copied all of mail/base to app/components/addrbook, and modified
makefiles appropriately.
I realize this brute force, but I just want to get things working first and
can then pare
things down after. This builds successfully, and things seem fine, except
for the thunderbird
window that appears along with my application window. It appears as though
the thunderbird
window is being create *first*, before my application window.
I have no idea why this is happening. It seems as though messenger.xul is
being passed to
openWindow from somewhere, but I can't find where. It's potentially called
twice in
base/content/mailCore.js, but I've commented out both calls and the window
*still* appears.
It's also mentioned in an overlay statement in a jar.mn file
(search/jar.mn), but I can't see how
that would make the window appear (and I've removed it too). These are the
only references
I find in my entire application source tree.
I also checked mailnews, and the only references there are overlay
statements too.
I've even tried using the venkman debugger. I can see the messenger.xul
window in it, but
I can't figure out where it's coming from.
Can somebody help me here? I'm not sure exactly how startup works in
XRunner. I don't
even know where to look. I suspect there is some service somewhere that is
being started
that is creating this window, but I don't know how to track it down.
Any suggestions at all would be appreciated.
Thanks,
-- Greg