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

How to capture onload, onerror in NPAPI Plugin

In javascript my code will be as follows: function start() { var start = document.getElementById('start'); //start is object for my plugin if(start){ getAsLoad(start); } } function getAsLoad(startObj) { var load =…
r_tex
  • 77
  • 9
0
votes
1 answer

How to pass plain NPAPI Plugin class Object to javascript

I have my Plugin.cpp class in my NPAPI Plugin i want to pass this class object to javascript function as follows :: function testData(){ var obj = data.getObject(); //data is an object created in javascript, getObject is implemented in…
r_tex
  • 77
  • 9
0
votes
1 answer

How to use javascript object in asynchronous function

Thanks in advance . I am creating one function as follows . //requestFile is implemented in NPAPI Plugin , Getting initFS as an NPObject when task is complete i am calling NPN_InvokeDefault on this…
r_tex
  • 77
  • 9
0
votes
1 answer

Access Javascript Array in C++/Plugin?

I have written a NPAPI Plugin using firebreath framework. I am able to pass simple numeric values from Javascript and access them in my (C++)plugin, perform operations and then return the result. I would like to know how to operate on vectors now…
lucent
  • 124
  • 8
0
votes
3 answers

How to catch a flash stream url from browser plugin

My question has similar point like this one. I’m wondering how I can catch a media URL which SWF loads from browser add-on. Let’s say YouTube flash player starts playing or loading some video (let it be via http) and I want to know that url. Just…
Nazar Grynko
  • 561
  • 1
  • 5
  • 26
0
votes
2 answers

NPAPI plugin Windows DLL dependencies

I created an NPAPI plugin that I'm packaging within a Chrome extension. I'm able to successfully install and use the extension in Chrome on Windows 2003 and Windows XP 64-bit. However, when I install the plugin on Windows 7 (either 32-bit or…
0
votes
1 answer

NPAPI invoke argument wrapping

I writting a NPAPI plugin which contains two plugin types: x-capture used to capture some video from a camera x-display used to display images captured by x-capture objects and I have the following HTML/JavaScript code which uses the…
Andrei Bica
  • 63
  • 1
  • 4
0
votes
1 answer

Is there a way to disable Alt+F4, Ctrl+F4, Ctrl+W in web browser using an NPAPI plugin using Firebreath?

Is it possible to prevent certain Keypresses (as mentioned int he title) from reaching the browser? Basically I want to strip down user's ability to close a browser window. Is it possible through NPAPI plugin, particularly in google-chrome web…
Juzer Ali
  • 4,109
  • 3
  • 35
  • 62
0
votes
1 answer

HTML 5: Accessing local file system mp3 from a website

Nomally web browser would not allow a website to access the users local files. I came across locallinks plugin which allows the file:/// access from a webpage , however such file opens up in a different tab. I wanted to create a player which already…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
0
votes
3 answers

How to execute Javascript from ActiveX in IE

I have a javascript for example try { __flash__toXML(onYouTubePlayerReady("")) ; } catch (e) { ""; } . In FireFox, Adobe plugin(Flash player plugin) executes above Java Script by calling NPN_Evaluate and NPN_Evaluate() returns result…
0
votes
1 answer

How to send notification from NPAPI pluguin to javascript code?

From my point of view it should be some code on javascript side, setting up callback function in NPAPI plugin. On NPAPI side it should be some way to call this callback function, thus sending notification from NPAPI to javascript. I am trying to do…
ks1322
  • 33,961
  • 14
  • 109
  • 164
0
votes
1 answer

Are NPAPI plugin security issues same as a downloadable app that connects to the internet

I want to build a cross-platform helper app that lets my users scan the desktop filesystem and find/upload the original, hi-res version of a JPG image they have previously uploaded. The scan may try to match by filename, EXIF data, or by comparing…
michael
  • 4,377
  • 8
  • 47
  • 73
0
votes
1 answer

NPAPI Safari Windows

I have built NPAPI plugin that is loaded fine by Chrome, FF, and Safari browsers on Windows 7. However, I needed to duplicate the plugin to make it a different plugin (name). I was able, so far, to make Chrome and Firefox recognized the 2nd plugin…
Don
  • 1
0
votes
1 answer

Mozilla Plugins, will I have to recompile each time the Gecko SDK is updated?

I am about to start work on a Mozilla plugin for my company's main product line. I was under the impression that I could build using the Gecko SDK, say two major revisions ago, and that would cover any browser a person would reasonably be using. I…
Jonathan Henson
  • 8,076
  • 3
  • 28
  • 52
0
votes
1 answer

How do I write an mac npapi plugin with OpenGL?

I was looking through the header files and I saw the openGL drawing model, so I was busy switching everything in my plugin from CoreGraphics when I saw online that, apparently, the openGL drawing model doesn't actually exist and never will... Can…
PendingVegan
  • 137
  • 3
  • 16