Reputation: 805
I have got a plugin which is basically an IE equivalent ActiveX control, that supports scripting. I'm using the IDL file & XPCOM Glue in my Plugin - this works fine upto FF 3.5. Apparently as I read from several places that XPCOM support for plugins is gone, but still I'm able to load and embed the plugin in FF3.6 - the problem is I'm not able to access the methods from JS.
I'm now confused whether to re-write my plugin completely(remove the XPCOM glue) or to add NPObject to the same plugin code to make it work. Any sample code for the conversion would help and your guidance would be greatly appreciated.
Upvotes: 1
Views: 343
Reputation: 14324
You just need to add NPRuntime/NPObject support to make it work.
You could also take the opportunity to rewrite it to use FireBreath so the same code works on both IE and FireFox, but that's up to you =]
Useful blog posts I've written on the subject:
Hope it helps
Upvotes: 1