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

Can use NPAPI in Firefox Extension?

0 views
Skip to first unread message

Eric E. Del Sesto

unread,
Oct 17, 2005, 1:08:21 AM10/17/05
to
I am writing a Firefox extension (not a plug-in), in C++. I am trying to
call from this extension's C++ code to a JavaScript function defined on the
HTML page opened in Firefox. I have seen a few examples of how to do this
using the new NPAPI api, but it appears to only be useful for plug-ins.
NPAPI says that a plug-in must provide a NP_Initialize(NPNetscapeFuncs*)
function. This provides a structure which a list of function pointers that
are needed to use NPAPI, for example NPN_GetValueUPP and NPN_InvokeUPP.

Can NPAPI be used in an extension?

Thanks,
Eric


0 new messages