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

What cross-browser technology do you use in your web applications to manipulate on client machines?

(I have a problem with Google Chrome improvements that will drop support for my current solutions.) I work on project where I move desktop system to an Intranet web application. The crucial requirements are: to move desktop system to a web…
Bru
  • 514
  • 3
  • 14
2
votes
2 answers

How to enable npapi plugin by registry or configuration file?

In Chrome version 42.0.2311.90 m, NPAPI support has been disabled by default in Chrome. Is there a way to re-enable it via the registry or configuration file?
user3777528
  • 41
  • 2
  • 4
2
votes
1 answer

How to deploy a simple NPAPI plugin DLL in Mozilla Firefox (v29.0.1) in Windows?

I downloaded "npsimple" NPAPI plugin for Mozilla from the link "https://code.google.com/p/npapi-chrome-plugin-helloworld-example/source/browse/trunk/samplevsproject/?r=2" I was able to build it fine and run the plugin code in Chrome by packing the…
cpremkumar
  • 31
  • 1
  • 5
2
votes
2 answers

Hacks to make synchronous JavaScript calls

JavaScript uses asynchronous calls in most of the modern APIs dealing with "slow" things like disk IO and network. I realize what the purpose of this, however there are certain cases when making synchronous calls really needed. For example, I have a…
Alexey Andreev
  • 1,980
  • 2
  • 17
  • 29
2
votes
1 answer

Error Calling Method On NPObject While Tried To Populate Lync Presence

I want to populate Lync user presence using javascript , and find some good tutorial below http://blogs.msdn.com/b/tomholl/archive/2013/03/02/integrate-lync-into-your-intranet-sites-using-the-namectrl-plug-in.aspx it's running fine in my computer…
Dika Arta Karunia
  • 476
  • 1
  • 4
  • 17
2
votes
3 answers

Show a window from 32-bit NPAPI Plugin in 64-bit Safari

I have an old NPAPI plugin for OS X that I'm trying to refit for use with Snow Leopard's version of Safari. My problem is that when I switch Safari to 64-bit mode, it changes the plugin environment to out of process mode (where plugins are hosted by…
Glenn Howes
  • 5,447
  • 2
  • 25
  • 29
2
votes
1 answer

How come NPRuntime require xpt file?

I am trying to make sense of whatever I learned about NPRuntime. Here is a example of NPRuntime plugin from from mozilla-central of NPRuntime plugin, which mentions following lines // ============================== 145 // ! Scriptability related…
Xinus
  • 29,617
  • 32
  • 119
  • 165
2
votes
1 answer

How can I get an NPAPI plugin to read an "src" tag

i'm a little stuck on getting a plugin to work. I need it to take a "src" parameter but I can't seem to make it do this. So i've basically got the npsimple basic plugin. It's probably something really silly i'm missing Joe
Joe Simpson
  • 2,546
  • 4
  • 30
  • 46
2
votes
2 answers

Firefox Gecko SDK : NPP_GetValue not getting called

I have tried out the NPRuntime sample provided with the Gecko SDK 1.9.1 with the help of this link. It works perfectly fine with Firefox 3.6. Following the above steps I created a new scripting plugin (npmyplugin.dll). I am currently placing…
2
votes
1 answer

Npapi set timer function

I'm still running Firefox 2.0.0. For backward compatibility reasons I'd like to know weather there is a easy way to replace the NPN_PluginThreadAsyncCall, NPN_ScheduleTimer mechanism that the newer npapi supplies. The only solution that I would…
eiseled
  • 89
  • 3
2
votes
2 answers

Firefox 3.6 plugins fail on Mac?

I just upgraded my mac to Firefox 3.6, and now neither of my TIFF Viewing plugins work. in 3.5, If I had Quicktime on, then I'd get the tiff, viewed through quicktime. If I had Quicktime disabled, but my own plugin, AcellViewTIFF enabled, then I…
Brian Postow
  • 11,709
  • 17
  • 81
  • 125
2
votes
1 answer

Run a local dll file, select printer etc... Alternative to NPAPI

I´m looking for a sustainable solution when it comes to communicating with hardware on a local machine. I´ve been reading about NPAPI but unfortunately it is being phased out. I would like to run things like silent printing from a website. The…
hgerdin
  • 637
  • 2
  • 8
  • 24
2
votes
1 answer

Non-drawing Mozilla plug-in

I have some dll that implements some logic. I want to create wrapper that will be accessible from JavaScript of HTML page in Mozilla Firefox browser. I have found npruntime framework, but it seems supports only window control, i don't need GUI. I…
Rouslan
  • 43
  • 1
  • 5
2
votes
1 answer

Loading a file in PPAPI

I have built a chrome extension which require data from a configuration file. I achieved it through NPAPI plugin but now I have to use PPAPI since Chrome is going to discontinue it Jan, 2014 onwards. Is it possible to load a file in PPAPI. If not,…
Akhil
  • 479
  • 3
  • 13
2
votes
1 answer

Chrome's Deprecation of the NPAPI & FireBreath

According to this statement, NPAPI is going to be destroyed (By Chrome) Starting in January 2014, Chrome will block webpage-instantiated NPAPI plug-ins by default on the Stable channel. My company has a plugin written in FireBreath (using C++)…
Kirk Backus
  • 4,776
  • 4
  • 32
  • 52