Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Not able make a invoke a method in loaded xpcom component in FF17

12 views
Skip to first unread message

mady

unread,
Feb 25, 2013, 1:28:39 PM2/25/13
to
Hi, I am facing issue in FF17, invoking a xpcom component method from java script in my web application, where the xpcom component dll got loaded through extension. Here is my sample javascript code, which is stopped working in FF17. Seems FF17 stopped supporting PrivilegManager package. I badly need to find an alternate solution to make it work. Appreciate your help.

function invokeFoo() {
try {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var invoker = Components.classes["@ABC.COM/MYComponent;1"].createInstance();
invoker = invoker.QueryInterface(Components.interfaces.nsIMyInterface);
invoker.Foo(self,'name');
}catch(e) {
alert(e.message);
}
}

Thanks in advance.
0 new messages