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

How to create a browser plugin bundle on OS X

I have created a NPAPI browser plugin for Firefox on linux. I installed the plugin by copying the shared library into my user's profile plugin directory. I am able to build the shared library on OS X, but I am not familiar with how to create a…
Brian
  • 285
  • 2
  • 8
3
votes
3 answers

NPAPI plugin support or similar for reading smartcards

Now that Chrome and FireFox (FF to a lesser but still relevant extent) are removing support for NPAPI (basically Java) and Edge (formerly Spartan won't have it, what are the alternatives? I appreciate there is no one-size-fits all replacement and…
tim.baker
  • 3,109
  • 6
  • 27
  • 51
3
votes
1 answer

Replacement for NPAPI Plugin

As we all know Google announced to remove NPAPI from Chrome on September 2015: http://www.chromium.org/developers/npapi-deprecation I have a plugin developed with NPAPI, which allows users to scan using WIA and TWAIN. I also use there WinApi do…
3
votes
3 answers

NPAPI plugin in QtWebKit

I know its possible to integrate NPAPI plugins with QtWebKit as its been supported since the release of Qt 4.5. My question is, should I go and design my plugin according to the Mozilla/Gecko documentaion -Which is probably the only…
Zaid Amir
  • 4,727
  • 6
  • 52
  • 101
3
votes
2 answers

Firefox [npapi] plugin development - firefox freeze when calling a method

I'm trying to learn how to write a Firefox plugin. I downloaded the npruntime example from Mozilla compiled it and ran it. Getting properties from the plugin worked well but when I tried to call a method, Firefox freezed. I thought maybe something…
Ran
3
votes
1 answer

Return Array from NPAPI plugin to java script

I want to return array of string from NPAPI plugin to Javascript. Currently I am using only plain NPAPI. I have read the following links: NPVariant to string…
r_tex
  • 77
  • 9
3
votes
1 answer

Does Firefox support enablePrivilege("UniversalBrowserRead")?

I have written a plugin which queries webpage parameter from FireFox browser using NPAPI, but whenever I tried to query a webpage having iFrames, I'm getting error while trying to query the innerheight from my plugin: permission denied to query…
Raveendra Pai U
  • 135
  • 1
  • 4
  • 13
3
votes
1 answer

How can I pass binary-stream (read from a .jpg file, about 1M ) from firefox plugin to page-hosted javascript?

I'm work on a project recently, which need to pass a binary-stream from npapi plugin to javascript, I've tried following ways: use NPN_InvokeDefault, i created a string variant which store the binary-stream, and invoke it to javascript, it failed.…
brianchai
  • 33
  • 2
3
votes
1 answer

Load NPAPI Plugin on Android device/emulator

I compiled sample NPAPI Plugin which I got from this link http://code.google.com/p/npapi-sdk/ after compiling it using NDK, I got the .so file libs/armeabi/libBasicPlugin.so after searching on Google I came across following suggestions: put .so…
Ravi Vagadia
  • 31
  • 1
  • 4
3
votes
2 answers

NPAPI plugin does not show in about:plugins in google chrome

I have gone through the questions in this forum regarding this issues, but I have not found any query related to the kind of issue that I am facing. I have written a NPAPI plugin which works fine with GtkLauncher (comes with webkit) and firefox, but…
Souvik
  • 151
  • 3
  • 14
2
votes
4 answers

Writing a Firefox/Netscape plugin

I am in the process of writing a Firefox/Netscape plugin (not extension) to run on windows, and I was wondering if you could suggest any sites for guidance and tutorials? I have been looking through the Mozilla documentation, specifically the gecko…
gonzohunter
  • 832
  • 1
  • 8
  • 18
2
votes
1 answer

OpenGL plugin crashes Chrome when the visible region is changed

I'm developing a plugin using FireBreath on Windows (for now) that among other things is displaying a webcam feed using OpenGL. I'm using a windowed plugin and I'm drawing from a separate thread. The code can be viewed here: Header file…
Daniel
  • 1,417
  • 2
  • 12
  • 20
2
votes
1 answer

Where to download the NPAPI?

I've been searching for about an hour now, I already feel kinda dumb. Where can I find a download for the NPAPI ? I've skimmed the Gecko Plugin API Reference a little bit, but couldn't find a downloadlink. I also downloaded the Gecko SDK, which…
Niklas R
  • 16,299
  • 28
  • 108
  • 203
2
votes
1 answer

NPAPI Browser plugin

Is there any free NPAPI plugin that could provide full access to local file system? Maybe there are some ready-for-use universal plugins which provide access to many OS native api functions?
Andrey Kon
  • 1,099
  • 2
  • 9
  • 18
2
votes
1 answer

Basic Plugin (NPAPI / npruntime) Hello world

Backgound steps Used Mozilla code from here: http://mxr.mozilla.org/seamonkey/source/modules/plugin/tools/sdk/samples/basic/windows/ New Empty Project in Visual Studio & added above files Changed Congfiguration Type : Dynamic Library (.dll) 3b.…
hapyfishrmn
  • 177
  • 2
  • 21