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