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
4
votes
1 answer

Get Window Handle of Chrome Tab from Within Extension?

I've written a Chrome Extension (w/ NPAPI as well) that allows my application and Chrome to communicate with each other. That is all mostly working fine. What I'm trying to do now is be able to tie the HWND of a Chrome window to a particular Window…
Tim
  • 14,999
  • 1
  • 45
  • 68
4
votes
0 answers

Gtk+ delayed white screen (flash plugin + NPAPI)

I created an standalone application which run compiled flash (.swf) on a gtk+ UI with NPAPI. When my video runs, there's a small time where there's a white screen (maybe 1 or 2 sec). It's kind of annoying and I am wondering if I can do something to…
fneron
  • 1,057
  • 3
  • 15
  • 39
4
votes
1 answer

Hosting Flash won't load swf ressources (xml, image, etc.)

I tried to achieve at first a swf reader with gtk2 on my unix machine. Worked, I could render simple swf files. Now, I'm trying to add a configuration to my flash file with xml configuration, add image, etc. Failed, won't get pass…
fneron
  • 1,057
  • 3
  • 15
  • 39
3
votes
1 answer

conversion ActiveX to NPAPI

How can I convert ActiveX app to NPAPI app? All I found a way is implementing Entry Points and mapping functions for NPAPI. (NPP_GetEntryPoints...) Is this only way except for re-writing app using Framework? any help will be appreciated. Thanks.
JayMuzie
  • 341
  • 1
  • 4
  • 16
3
votes
2 answers

Web App with Microphone Input

I'm working on a C++ application which takes microphone input, processes it, and plays back some audio. The processing will incorporate a database located on a server. For ease of creating UI and for maximum portability, I'm thinking it would be…
erock2112
  • 139
  • 4
  • 10
3
votes
1 answer

Is it possible to pass Javascript objects to ActiveX (and use them)?

I want to pass JavaScript objects (JSON and function objects) into my ActiveX control. Ideally, I could manipulate JavaScript objects (e.g. reading or modifying JSON) and perform JavaScript function calls from within the ActiveX control (using C++).…
Peter Tseng
  • 13,613
  • 4
  • 67
  • 57
3
votes
2 answers

How can I load a NPAPI Plugin from a Safari extension?

My query is similar to this global.html is unable to load NPAPI plugin from safari-extension builder but its loading from the direct link. How can I load a NPAPI Plugin from a Safari extension?
Akbar
  • 1,509
  • 1
  • 16
  • 32
3
votes
3 answers

How to obtain firefox user agent string?

I'm building an add-on for FireFox that simulates a website, but running from a local library. (If you want to know more, look here) I'm looking for a way to get a hold of the user-agent string that FireFox would send if it were doing plain http.…
Stijn Sanders
  • 35,982
  • 11
  • 45
  • 67
3
votes
1 answer

Is it possible to create custom XUL elements from XPCOM or NPAPI?

I was wondering if it is possible to create a new XUL component via any available api, such as XPCOM or NPAPI, so we can use it our XUL files. Let's say I wanted to clone the XULs vbox's components code and add a few modifications to it, so we…
santiageitorx
  • 103
  • 1
  • 7
3
votes
1 answer

NPNInvoke - Passing plugin data back to browser

I am calling back an object in Javascript using NPAPI. Before this call, the functions I am calling result in proper invocation of functions in JavaScript but it fails in NPN_Invoke calls. Code…
Janon
  • 31
  • 1
3
votes
2 answers

Embedding flash within a custom desktop application, using NPAPI?

Note: Please don't answer with just use Adobe AIR". I am aware of it, and it's not applicable in this situation. I've been reviewing the Gecko Plugin API reference. I'm assuming I'd have to implement all the required browser-side functionality. My…
Mark Renouf
  • 30,697
  • 19
  • 94
  • 123
3
votes
0 answers

How to display stereoscopic pictures on a web page?

A simple question, but I couldn’t find the answer anywhere. It appears there’s no native browser support for that (but I maybe wrong and maybe an image format supportting stereocopic data is supported by at least one web browser). I’m not talking…
user2284570
  • 2,891
  • 3
  • 26
  • 74
3
votes
1 answer

SSL Certificate Context - How to get it using NPAPI

How to get the SSL certificate context of the website using NPAPI ? Can I use libnss (Network Security Services) or should I stick to WinINet's InternetQueryOption() to get the context. Thanks, Saleh
Saleh
  • 45
  • 6
3
votes
1 answer

How can you debug Safari NPAPI plugins in OSX 10.11?

Attempting to debug an NPAPI plugin by attaching to the plugin process does not appear to work in 10.11. Attaching with lldb reveals: sudo lldb -p 39337 (lldb) process attach --pid 39337 error: attach failed: unable to attach This seems to affect…
harningt
  • 709
  • 7
  • 19
3
votes
2 answers

Alternative for java applet which needs to communicate with browser via javascript

In our web application, we using a Java applet to invoke MS.Word application by jacob jar e.g. Word to open, edit, and when it saves automatically it uploaded to the server. Google Chrome will no longer support NPAPI, so soon we can not run our…
kapil
  • 31
  • 3