Override all XPCom security checking

"Ivan" <[email protected]> Mon, 21 Oct 2002 18:42:26 +0800
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,

I am new to XPCom. I have written a simple XPCom and a test script in
Javascript as follow (only the beginning):

var a;
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
a = Components.classes["@test.com/testXPCom;1"].createInstance();

It works very well but it needs human interaction to click OK when executing
enablePrivilege() in every function in my Javascript.
I don't mind give up all security checking protect for XPCom objects but
just not want to call
"netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")"
in my javascript. Is there any way that I can just use createInstance() to
create the object by using some preference/configuration in mozilla?

Thanks,
Ivan