Re: How to register an XPCOM component during install

Daniel Veditz <[email protected]> Wed, 16 Feb 2005 01:04:23 -0800
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Ajit Web wrote:
>     I am trying to use XPCOM object through the Javascript code in an 
> xbl file. I want to register both the xpcom object and the xbl file for 
> use at the client side.
[...]
>     This type of structure works for local file. ie. if I place both 
> files in a directory on client and try opening in the Netscape brower. 
> But it doesn't work when I shift the application files to web ie keep on 
> the webserver.

XPCOM components can do anything, there is no sandbox or other security 
measures. For this reason only files explicitly *installed* on the local 
computer can be XPCOM components. (actually, signed code which the user 
granted permissions could probably do this too, but it would be easier 
to simply install what you need.)

Presumably you suspected this since you posted to the n.p.m.xpinstall 
newsgroup rather than n.p.m.xpcom

-Dan Veditz