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
0 answers

Chrome API - Check if Chrome has Focus

I'm creating an extension where I'd like to be able to figure out whether Chrome (as an application) has the user's focus, i.e. is it not minimized or in the background? I believe there are javascript functions that check if a tab has focus, would…
Thariq Shihipar
  • 1,072
  • 1
  • 12
  • 27
0
votes
1 answer

NPObject not distinguished by JavaScript

In my plugin code, I create an array of 'devices' and return it to JavaScript. The device in the array is an instance of a NPObject. The array can be successfully created and the device instances can be pushed in. However, 'undefined' value is…
cs2k
  • 127
  • 9
0
votes
1 answer

Safari plugin crashes on NPN_GetValue

My plugin code crashes when I call the NPN_GetValue. Basically I created a scriptable object which has a 'getDevice' method that can return a device array to JavaScript. Below is the code snippet. static bool mainNPObjectInvoke(NPObject *obj,…
cs2k
  • 127
  • 9
0
votes
2 answers

How can I update the status messages in Firefox from any thread?

I encountered a problem with updating the status message on Firefox from a Plugin code. As the documentation says calling NPN_Status works only when called from the main thread. My requirement is to update the status from any thread within the…
atVelu
  • 815
  • 1
  • 12
  • 24
0
votes
1 answer

NPAPI plugin not working in Firefox5.0 on Mac

I have a NPAPI plugin (built using firebreath) which works fine Safari and Google Chrome (both on Mac); But it fails to work on Firefox. When I looked at the Firefox plugins (about:plugin) it correctly shows my plugin name and version and shows it…
0
votes
1 answer

axWrapper want´s NpapiPluginModule::Default = module -- Where is "::Default" gone?

Firebreath 1.6 -- VC2010 -- FBAXExample -- np_winmain.cpp I try axWrapper and i got an error. Unknown NpapiPluginModule::Default np_winmain.cpp ... using namespace FB::Npapi; FB::Npapi::NpapiPluginModule *module = NULL; void initPluginModule() { …
moskito-x
  • 11,832
  • 5
  • 47
  • 60
0
votes
1 answer

How to get the DOM of a link after it is right-clicked and accessed for a functionality from Context Menu?

I'm writing an extension for Google Chrome that converts a webpage to a PDF document. I'm adding this functionality for Context Menus as well. It is pretty simple to get the DOM of the current webpage, but I'm trying to add a functionality to…
Rahul Gulati
  • 363
  • 1
  • 4
  • 16
0
votes
1 answer

How do I show a File Saveas dialog from a Chrome Extension?

I'm creating an extension for Google Chrome that converts a webpage into a PDF file. From the JavaScript background page, the URL, DOM, and the path are passed to the NPAPI DLL, where the conversion happens. For now, the path is hard-coded. I want…
Rahul Gulati
  • 363
  • 1
  • 4
  • 16
0
votes
1 answer

Locking user to browser window (using .dll files)

Is it possible to lock a user in chrome using .dll files (NPAPI plugin) or any other method? I want to invoke chrome browser in highly controlled environment preferably on Windows. I would download chrome for businesses and write policies such that…
Juzer Ali
  • 4,109
  • 3
  • 35
  • 62
0
votes
0 answers

Different results loading plugin without plugin-container

i´m trying out the npruntime-scriptable-plugin with VC2010-Express. Firefox without plugin-container. Sample Scriptable Plug-in results go here: NPN_Evaluate() test, document = [object HTMLDocument] function bar([object Window])…
moskito-x
  • 11,832
  • 5
  • 47
  • 60
-1
votes
1 answer

How to handle file open from browser NPAPI plugin?

I need full path to file when file is opened. For example user open file.txt but it will be opened with notepad or other. But how to register "hook" from NPAPI plugin to get path to file and prevent opening in other program?
Yura Rodchyn
  • 716
  • 5
  • 3
-1
votes
1 answer

How to enable applets in chromium browser?

I am trying to enable applets in chromium browser. But, the plugin npapi not going to be installed. I know chromium people disable this java feature from their browser. But, I want to run my applet in chromium browser only. How can I enable java in…
-1
votes
2 answers

Is there a working widget for Chrome that will allow my website to run Java in Chrome

Is there any middleware that will allow me to run Java applets in Chrome on my website, by running it in a sort of encapsulation shell? I'm looking for something that will run the Java Applet on chrome in a sort of feed-in to the app, convert and…
Oscar Chambers
  • 899
  • 9
  • 25
-1
votes
1 answer

Is there a way to make Java Applets work on the latest version of Google Chrome?

Are there any addons or extensions that allow you to run java on the latest version of google chrome? Are there any ways of making this possible?
Barney Chambers
  • 2,720
  • 6
  • 42
  • 78
-1
votes
1 answer

Image document management application issue with deprication of NPAPI support by Chrome

My organization uses Gmail and Google Chrome for all communication and web-browsing needs. We use a certain third party application for our Image Document management. From within Gmail, we usually click on links to this application to see the…
1 2 3
48
49