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

Plugin instance deleted when changing its 'position' style attribute in Webkit

I'm struggling with a strange (Webkit-specific?) effect: When changing the 'position' attribute of a plugin object, my plugin is deleted and immediately replaced by another freshly instanciated. This means I'm losing all the state of the current…
Gui13
  • 12,993
  • 17
  • 57
  • 104
0
votes
1 answer

does NPP_Write processes content before delivering it to plugin instance?

The code below should be self explanatory NPP_PostURLNotify() //post to a URL that returns a pure java script code NPP_WriteReady() NPP_Write() // when the browser calls back this function does it execute that java script before calling this…
0
votes
1 answer

Give file path in plugin

I have developed npapi plugin using firebreath. I want to access one image that is placed inside the computer. I am confused how to give the file path in plugin class or shall i need to place it in other specified folder?? Please help.
0
votes
2 answers

NPAPI plugin can work on mac10.8 but not mac10.6

I develop a npapi plugin on mac10.8 with xcode4.5 and the Gecko SDK is Gecko 17.0(mac i386). The plugin can work on mac10.8 but not mac10.6,I don't what problem with it。somebody can tell me what can i do and how to solve the problem.The plugin on…
0
votes
1 answer

Firebreath NPAPI plugin pass javascript arrays by reference

I am new with using Firebreath. As an exercise I am trying to write a plugin that does a vector addition. For some reason I am struggling with that. I will relevant code of what I am trying to do. This is my Javascript code. var problemsize =…
lucent
  • 124
  • 8
0
votes
1 answer

Why calling NSOpenPanel from NPAPI plugin safari crashes?

The below code crashes my plugin: NSOpenPanel *openFileDig = [NSOpenPanel openPanel]; [openFileDig setCanChooseFiles:true]; [openFileDig setCanChooseDirectories:false]; [openFileDig setAllowsMultipleSelection:false]; …
Magical
  • 263
  • 3
  • 10
0
votes
0 answers

How to give external library path in firebreath

I am developing clutter based plugin using Fire breath. I have given the path of the includes files in flags.make file and the .so libs are included in link.txt file. But my problem is that when i launch the plugin .so file which is generated under…
0
votes
1 answer

NPAPI plug-in call javascript function?

is there any way the NPAPI plug-in call the function in JS? if yes,please give me an example.By the way,my plug-in is running on safari. Thanks very much.
Magical
  • 263
  • 3
  • 10
0
votes
1 answer

Accessing property of NPAPI plugin from Javascript

Have a problem when try to get a value of a property via Javascript using a NPAPI plugin; During the debugging I see that all the chain of functions (HasProperty, HasMethod, and GetProperty) are called. More over I see that during calling…
pimanych
  • 21
  • 3
0
votes
1 answer

Clone Chrome audio output

I'm trying to find a way to capture all audio output from a page, be it a youtube video, or a silverlight movie, or an annoying banner ad. My original idea was to inject javascript and html5 tags into the page, but that has proven fruitless for the…
ZacAttack
  • 2,005
  • 5
  • 21
  • 34
0
votes
2 answers

Function as NPObject - how to get its signature?

My NPAPI plugin receives a Javascript function as NPObject. Is there a way to get this function's signature, or at least, the number of parameters it requires? Thank you.
user1226710
0
votes
2 answers

Is there any way to get the code of existing NPAPI plugins?

I want to develop my own NPAPI plugin - is there any way to get the code of existing plugins? If not, what are the best practices / demos to start writing?
rov3rPL
  • 11
  • 1
  • 3
0
votes
1 answer

NPAPI tutorial, Gecko SDK

Hi im following this simple tutorial on mozilla developers site. im getting some errors in BUILD phase and one thing that i couldn't follow in tutorial was under Version Issues If you are using Gecko SDK v1.9 and higher, you'll probably need to…
Mihkel L.
  • 1,543
  • 1
  • 27
  • 42
0
votes
1 answer

mac10.8 NPAPI plugin not load on opera

I write a web plugin on mac10.8 with Xcode4.5,it can work on safari,firefox, but it can't work on opera,the question is opera can't load my plugin,the easy question is it can'n execute the function "NP_GetEntryPoints" and "NP_Initialize", and i…
0
votes
1 answer

Regarding Calling exe from Chrome Extension

I am trying to calling exe from chrome extension. I googled and come to know that It is possible from NPAPI plugins only. I also got the impression that it can be write only in c /c++ (which i dont know.). Can anybody help me on NPAPI plugins. If…
Manoj G
  • 87
  • 14