My plugin is wrapping an activex control. Whenever the activex control
fires an event, my plugin uses Observer Service to relay that
information back to javascript. Its a layer between what would normally
just be an IE activex event handler.  While most on this forum would
conisder wrapping an activex control in a firefox plugin sacrilege, its
what my company needs me to do.

I've tried adding the privelage enable in my method and I still receive
the same 2 errors everytime its called. I've added an alert box that
will cause the errors. Just before it I put the privelage enable. Still
the same 2 errors per call.

var myObserver = { observe : function(subject, topic, data)
{
  if (topic =="DISPID_SECURE_KDXAPIEVENT_CUSTOMEVENT")
  {

netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
     alert("DISPID_SECURE_KDXAPIEVENT_CUSTOMEVENT");

   }

};

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to