Paul Sinnett wrote:
Axel Hecht wrote:

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


Thanks Axel, that seems to work in both xpcshells. In both cases it returns:

[xpconnect wrapped nsIDOMSerializer]

It also works from my Firefox Javascript window, and returns:

[object XMLSerializer]

But it doesn't work from the Thunderbird Javascript window. This one returns:

Error: Components.classes['@mozilla.org/xmlextras/xmlserializer;1'] has no properties

Does this mean I'm missing the bit that maps nsIDOMSerializer to the name XMLSerializer? If so, how do I go about installing that? All I have done so far is to copy the files run regxpcom...

I have no clue, but this may really be more of an xpcom question. Maybe something tricky with static builds?

Axel
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to