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

using firebreath created npapi for chrome can i call the plugin methods from the extensions and not from html loaded page

I've built a simple NPAPI plugin, and registered it with Chrome. This all works; javascript in the browser is able to interact with plugin. But i need to be able to call methods of my plugin from Chrome extensions. Can it be done?
user63898
  • 29,839
  • 85
  • 272
  • 514
2
votes
1 answer

Making a Chrome extension to download (not view) the link and with custom filename

I'm currently developing a simple javascript extension for Chrome. The problem is simple but probably unfixable, but still here's the issue: on particular pages, i embed links to some files (i don't have access to server, so i can't change the way…
Alex K
  • 6,737
  • 9
  • 41
  • 63
2
votes
2 answers

Open/Save dialog from Netscape plugin on Mac OS X?

I'm developing an NPAPI plugin for Mac OS X, and need an Open/Save dialog at various times. Accessing the window directly fails, since plugins are now run out-of-process... but Apple's documentation makes vague references to being able to launch…
pioneer78
  • 683
  • 5
  • 11
2
votes
1 answer

Porting an NPAPI plugin to WebExtension

I have a NPAPI plugin to integrate a web application with printer. I am looking for some resources on how to port existing NPAPI plugin to new WebExtension standard. First question is, what are WebExtension limitations so I ll evaluate if it's even…
sakhunzai
  • 13,900
  • 23
  • 98
  • 159
2
votes
0 answers

Can I access to raw RTP stream from a web browser?

I'm having H264 real-time video stream issuing by gst-rtp-server. Moreover, there is possibility to use an augmented FEC stream from the server to improve performance in noisy environment (like WiFi). FEC works on RTP layer. So, on a client side…
Akon
  • 335
  • 1
  • 11
2
votes
1 answer

global.html is unable to load NPAPI plugin from safari-extension builder but its loading from the direct link

I am developing a Safari extension for both Mac and Win. My extension is a trigger point for my plugin which i am storing at ** /Library/Internet Plug-ins/** My extension's global.html is calling for my plugins mime type by an object tag The issue…
Parimal
  • 21
  • 1
  • 4
2
votes
1 answer

NPAPI plugin problems in Windows 7

I have a NPAPI plugin which I have written and been using for some time with Firefox 3.x with no problems. The object is defined as follows - I then call methods on…
Adam Cobb
  • 894
  • 4
  • 14
  • 33
2
votes
1 answer

Plugins + Extensions on Safari 5.0.1

My question is very simple: Is it possible to pack plugins into extensions for Safari? For instance, the exact NPAPI plugins which work on Google Chrome also work on Safari. However in Chrome I'm shipping the plugins as a part of an extension (a CRX…
themoondothshine
  • 2,983
  • 5
  • 24
  • 34
2
votes
3 answers

Add ActiveX and NPAPI Plugin in one page using Nested Object Tag

I want to embed both an ActiveX and NPAPI plugins in one page using nested object tags (as recommended by Mozilla) instead of relying on user agent. The problem is: I want to use one object id, such as id="MyObject", which will be defined in both…
Orca
  • 2,035
  • 4
  • 24
  • 39
2
votes
2 answers

How to convert ActiveX control to NPAPI plugin

I have an ActiveX control which is designed to * Search for nearby wireless networks * Create a wireless access point * Manage network adapters I would like this plugin to work in Google Chrome/Firefox. In IE; I can use the following code to…
bbosak
  • 5,353
  • 7
  • 42
  • 60
2
votes
2 answers

Starting default application for a file on Linux

I'm working on a Firefox NPAPI plugin + XPCOM component. I've run into a dilemma: Given a file downloaded from the Internet (say a PDF or PNG) how do I start the default helper application to display that file on Linux using C/C++? Currently I'm…
themoondothshine
  • 2,983
  • 5
  • 24
  • 34
2
votes
1 answer

Alternatives to Java Applet running with NPAPI in Chrome

We have an Applet we used to zip files on the client machine and stream the content back to our servers. Our clients that have updated to the newer versions of Chrome are no longer able to use our Applet because Chrome does not support NPAPI plugins…
Dylan
  • 165
  • 2
  • 16
2
votes
1 answer

How we can run java in Chrome45 onwards

As we know, Chrome 45 onwards, there is no support for NPAPI. So How we can run webaaplication which are using java or applet with latest version of chrome? I know the one alternate way that by using the IE tab extension in chrome, but i am…
Hrushi
  • 163
  • 1
  • 10
2
votes
1 answer

Executing native code in the browser

I have a library written in C++ which works with raw HID input (mice, touchpads, etc.). I would like to create an extension, plugin, Java applet or whatever (preferably for Google Chrome), which would allow me to use the library in the browser on…
2
votes
1 answer

Writing Firefox Extension with C++ code

I currently have a Firefox extension/plugin combo that works well, and was written with a combination of NPAPI (Firebreath) C++ code and Javascript. The extension works by defining a browser overlay (overlay.xul/overlay.js) that is loaded on every…