Questions tagged [npapi]

The Netscape Plugin Application Programming Interface (NPAPI) is a cross-platform plugin architecture used by many browsers, with the notable exception of Internet Explorer.

The Netscape Plugin Application Programming Interface (NPAPI) is a cross-platform plugin architecture used by many browsers, with the notable exception of Internet Explorer.

Deprecation

The NPAPI is being gradually deprecated by Google (Chrome) and Mozilla (Firefox):

  • Starting January 1st 2014, Chrome disabled NPAPI plugins by default (with the exception of a few popular plugins). However, Users are prompted and can choose to activate the plugin.
  • Chrome is expected to remove all support for NPAPI come January 2015.

  • Starting with Firefox version 30 (June 10th, 2014), NPAPI is disabled by default (Again, with the temporary exception of a few plugins). Users can still enable specific plugins using Firefox's settings menu.

Alternatives

There are a number of ways to replace the now-almost-defunct NPAPI plugins:

  • In Google's Chrome, the 2 main options are NaCl (Native Client) and Chrome extension with Native Messaging - each offering a different kind of solution.

  • In Mozilla's Firefox, the common alternative is using the js-ctypes feature which allows direct loading of .dlls. The Firefox team has indicated that they will be eventually supporting Native Messaging like Chrome does.

A rudimentary overview of the options (with comparison of their strengths and weaknesses) is available here:

http://www.firebreath.org/display/documentation/Browser+Plugins+in+a+post-NPAPI+world

The FireBreath team has also released FireBreath 2 with very sparse documentation (users are asked to help document it) which attempts to make FireBreath plugins work via Native Messaging in addition to NPAPI and ActiveX support.

Resources

732 questions
0
votes
1 answer

FireBreath plugin through multiple pages

Im developing web plugin with FireBreath and I'm pretty newbie in this area. I have so far developed quite complex plugin API class (with registered methods, properties and some other variables and structs). I'am loading it onto page using…
Raadush
  • 71
  • 1
  • 9
0
votes
1 answer

strange characters with RegQueryValueEx

I'm creating a NPAPI dll file and I need to get some information from the registry, but when I use RegQueryValueEx, I get some strange characters. For instance, my computer model is "N310", but I get "Nfb1fb1" or "N$(". I'm pretty sure that it's a…
user461054
  • 41
  • 2
  • 4
0
votes
1 answer

JavaScript and NPAPI use the same method name but get different identifier on Android browser

I write a plugin for android browser and follow the npruntime rule to let it support JavaScript method. However, after I call the function of my plugin in JavaScript, I get different identifier number in NPAPI's pluginHasMethod() function. I am sure…
Sean
  • 25
  • 1
  • 7
0
votes
1 answer

Passing integer array from Plugin to JavaScript

I am trying to pass an array from plugin to Javascript. But I am unable to do it. I have referred to other post of similar kind where the solution given was to first get the Dom window object and then to invoke the function using NPN_Invoke with…
Techtotie
  • 33
  • 5
0
votes
1 answer

How to implement callback function in NPAPI Plugin

I am developing NPAPI Plugin for embedded native browser (Linux) . I want one callback function from javascript that will invoke callback function in my plugin . As per the events generated by pressing the keys of keyboard . I have to send events…
r_tex
  • 77
  • 9
0
votes
1 answer

NPAPI plug-in not loading in Safari

everyone, I made a NPAPI plugin, it works fine in firefox, but in Safari, it tells me can not find plug-ins.This is my registry HKEY_LOCAL_MACHINE\Software\MozillaPlugins\@llf.com\WebGame Descripton: REG_SZ "MP" Path: REG_SZ "D:\Program…
llf llf
  • 1
  • 1
0
votes
1 answer

NPAPI load third-party DLL

I am developing an NPAPI Firefox plugin and I have a question. I need to load a third-party DLL (such as D:\mydll.dll), but on some computers mydll.dll is not in the system path or in c:\windows\system32 and I get loading errors. Here is the…
llf llf
  • 1
  • 1
0
votes
1 answer

Communication between extension and plugin

I have written a Firefox extension which queries some browser information. I need to send this information to an NPAPI plugin from my extension. How can I achieve this? Is there any way to communicate between NPAPI plugins and the extension's…
0
votes
1 answer

Install a NPAPI Plugin in Safari on MacOS

I have a NPAPI plugin that communicates with chipdrives to sign data. It does not display anything. The plugin supports the NPAPI interface. I can install it in Firefox, packaged as a XPI file. I can install it in Chrome using a CRX file. I have a…
user1554070
  • 1
  • 1
  • 1
  • 1
0
votes
1 answer

Do I need to implement the NPN functions myself?

I got my header files from: http://code.google.com/p/npapi-sdk/source/browse/?r=7#svn%2Fwiki So in the Initialize method, I stored a pointer to all of the browser NPN methods like so static NPNetscapeFuncs* browser; NPError…
PendingVegan
  • 137
  • 3
  • 16
0
votes
1 answer

Does Opera support NPN_PluginThreadAsyncCall on Mac?

I'm trying my plugin with Opera 12.00 (MacOSX) and it seems like function NPN_PluginThreadAsyncCall() does not work. Is there any trick I'm missing, or the function is not supported? The plugin works properly in Windows and in other browsers on Mac…
user1226710
0
votes
2 answers

Can't get NPAPI plugin to work for mime-type "image/webp:webp:WebP"

I have compiled the NPAPI plugin for webP: http://code.google.com/p/webp-npapi-linux/ It works great from my firefox. I simply do not understand how to get it to work from Google Chrome. I created the json file: $ cat manifest.json { "name": "My…
malat
  • 12,152
  • 13
  • 89
  • 158
0
votes
1 answer

How to get the associated NPP instance from NPObject

Because My plugins need to interact with other plugin on the same page with JavaScript code: obj1.invokeWith(obj2) In this method, an NPObject object of obj2 is passed to obj1. How can I get the NPP instance of obj2 from this NPObject in the method…
eagleonhill
  • 121
  • 1
  • 6
0
votes
1 answer

Npapi Plugin not detected in demobrowser of QtWebkit

I am a newbie to StackOverflow and QtWebkit as well. I have written a very basic Npapi plugin which has functions like NP_GetMimeTypeDescription and Np_Initialise etc for Mimetype application/basic-plugin and Mimetype description…
Techtotie
  • 33
  • 5
0
votes
1 answer

Difference between Gecko Plug-in API and NPAPI

Can anyone tell me the difference between Gecko API Plugin development and NPAPI plugin development ? And can anyone provide me with startup document on NPAPI plugin ? Thanks in advance, Akshay Sahu.
Akshay Sahu
  • 79
  • 1
  • 2