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
2 answers

Npapi plugin crashes in safari

I developed npapi plugin for Windows. It works in Chrome, Opera, Firefox. But it crashes in Safari. I tried to find stable npapi plugin which works in safari but I didn't find this one. For example: 1) I get property from plugin fot the first time.…
James
  • 523
  • 4
  • 19
0
votes
1 answer

calling GetOpenFileName in plugin in FireFox

I wrote plugin for FireFox which offer method for choosing file. This method calls Win API function GetOpenFileName. When dialog "Open File" is shown and I do not switch to other window then all works ok. If I clicks browser window then all is…
user1807338
  • 195
  • 1
  • 1
  • 9
0
votes
1 answer

How to get http response header in npapi plugin

i am new to plugin development. I was told to use Firebreath, for developing npapi plugins, and it turned out to be very easy. Now, i wish to access the http response header of the response passed on to plugin. But i couldn't figure out a way as…
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
0
votes
1 answer

How to get printers interface in NPAPI plugin for Google Chrome?

how to receive printer interface in NPAPI plug-in for Google Chrome? I had a difficulty in writing of a plug-in of NPAPI. I can't understand. How to receive the list of all printers and to receive the interface to one of them? I write Scripting…
Crusnik
  • 1
  • 2
0
votes
1 answer

Is it possible to pass control back to browser after plugin is loaded

I have created NPAPI browser plugin. My plugin can handle certain mime-types, but i wish to give the user an option whether he wants to load the content using plugin or browser should take the default action. A Gtk dialog box with these options. But…
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
0
votes
2 answers

How do NPAPI Plug-in accept command+o event?

I got into a trouble, because my plug-in want to open file dialog when using command+o,but the safari holded on this event.Anyone has a solution?
Magical
  • 263
  • 3
  • 10
0
votes
1 answer

NPAPI plugin not being invoked always

I have written NPAPI plugin using firebreath. It works fine for all the registered mime-types. The plugin is registered for video/x-flv also. Now, whenever i type a url in address bar whose response contains video/x-flv content type, my plugin is…
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
0
votes
1 answer

NPAPI How can I tell if an NPObject is a function?

In my NPAPI plugin I wish to determine if an NPObject is a function (ie, it is an instance of Function). Any suggestions how I can do this? I can check with NPN_HasMethod() to see if there is a method called 'call', but I think a better way would be…
Innovine
  • 1,872
  • 2
  • 12
  • 10
0
votes
1 answer

writing to windows registry from chrome extension

Is there a way to write to/read from the registry in Windows using a Google Chrome extension? I'm looking to do something analogous to the following firefox…
Tom
  • 288
  • 1
  • 2
  • 15
0
votes
1 answer

How to get Plugin Object in nested javascript functions NPAPI

Thanks in advance !!!!! var pluginObject = null; function init() { var pluginObject = document.getElementById('pluginObj'); //This is object for my Plugin. pluginObject.onstartevent = handleEvent(); // This is working //now i am…
r_tex
  • 77
  • 9
0
votes
2 answers

FireBreath Write to AppData LocalLow From Internet Explorer

I have a FireBreath plugin source that somebody wrote that I'm trying to make compatible with Internet Explorer. In this plugin, .flv video is downloaded and then FFMPEG is executed within the Windows CMD.EXE to convert the .flv to another media…
user439441
0
votes
1 answer

NPAPI plugin is not reflecting in chrome://plugins

I have written one NPAPI plugin which has MIME type as " VALUE "MIMEType", "application/x-shockwave-flash|application/futuresplash""...... when I say chrome://plugins in the URL address bar , I am not getting my plugin reflected there. Please…
Ashish Mittal
  • 643
  • 3
  • 12
  • 32
0
votes
1 answer

how to create a windowed plug-in?

I have created a safari plugin using NPAPI and I want to add a NSView in my plug-in. When I try to get NPWindow throw function NPP_SetWindow(NPP instance, NPWindow* window), the second parameter is nil. I think my plug-in is windowless, but i don't…
Magical
  • 263
  • 3
  • 10
0
votes
1 answer

Accessing DOM object properties from Chrome's content script

I ran into a strange problem with a content script. The content script is defined as "run_at" : "document_end" in the manifest. After a page is loaded the script inserts an object tag into the page (if the tag with predefined id does not exist yet),…
Stan
  • 8,683
  • 9
  • 58
  • 102
0
votes
1 answer

Can not get DOM window using npapi

I've made a simple NPRuntime plugin calls Javascript function when it loaded. Based example is seamonkey's and it works fine on Google Chrome but it doesn't on FireFox. I traced code to find what is wrong and I found this line. NPObject*…
JayMuzie
  • 341
  • 1
  • 4
  • 16