On 13 Dec 2006 15:20:05 -0800, adamsrobw <[EMAIL PROTECTED]> wrote:
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.
Why do you need to use the observer service for the callback? The
observer is in a webpage, right?
If you're writing an NPAPI plugin, why can't you use npruntime api to
provide scriptability? While I'm not familiar with it, it looks like
you're able to give the (not privileged) webpage code a way to
register a callback and invoke it at a later point.
Nickolay
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
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom