Re: Installing xmlextras on Thunderbird
Axel Hecht <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Paul Sinnett wrote: > I have a Gentoo Linux install with Firefox and Thunderbird. Firefox > seems to come with the xmlextras component already installed, but > Thunderbird doesn't for some reason. > > How can I install this component manually so that Thunderbird recognizes > it? > > I tried installing it myself by copying the files xmlextras.xpt and > libxmlextras.so from my Firefox components directory (which does have > this installed) and running regxpcom. > > Then I checked to make sure the components were installed in xpti.dat, > and they are now. But still I get the error XMLSerializer is not > defined from the Javascript console. What am I missing? > > PS. Both Thunderbird and Firefox come with their own version of > xpcshell, but I can't get either to recognize any xmlextras components, > even though it does work in the Firefox Javascript window! In xpcshell, there are no DOM class info extensions, as that doesn't use nsGlobalWindow as global object. Or so. You could try to instantiate the xmlserializer directly by contract id, ser = Components.classes["@mozilla.org/xmlextras/xmlserializer;1"].createInstance(Components.interfaces.nsIDOMSerializer) Axel