Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many versions of an NPAPI browser plugin do I have to make?

I know that if I write a C++ plugin, then I need to have Linux, Mac, Windows versions at least but what's the full list of combinations? NPAPI is supported by many browsers so does that mean the exact same compiled NPAPI plugin binary/installer/whatever for Windows is ready for use in all those browsers on Windows which support NPAPI? Or do you have to 'compile' the same plugin code separately for each browser in some way?

like image 296
Mr. Boy Avatar asked Jan 15 '11 11:01

Mr. Boy


People also ask

Does any browser support NPAPI plugins?

NPAPI support among major browsers started to wane since 2015 and it was gradually deprecated over the following 7 years. With the advent of HTML5, all major web browsers have removed support for 3rd party NPAPI plugins for security reasons.

How do I add NPAPI plugins to Chrome?

To enable NPAPI plugin support: In the browser address bar, enter: chrome://flags/#enable-npapi. In the Enable NPAPI section, click the Enable link. At the bottom of the configuration page, click the Relaunch button to relaunch the browser.

Does Microsoft EDGE support NPAPI?

Yes it will support these types of plugins.

Does Opera support NPAPI plugins?

When trying to figure out how to do something in Opera, you can search for how to do it in Chromium or Chrome. In Opera though, type opera://flags/?search=npapi in the address field and hit enter. There you can enable support for NPAPI plug-ins.


2 Answers

Yes, a single NPAPI plugin runs in every NPAPI-supporting browser on a given platform, as long as you don't do anything to specifically undermine that (e.g., some people make NPAPI plugins but then add XPCOM code to them, making them Firefox-specific).

like image 198
smorgan Avatar answered Oct 11 '22 00:10

smorgan


Additionally, as you probably saw in the answer to your other question, FireBreath can be used to create a single plugin that can be made to work cross platform on pretty much all browsers, including IE on windows.

FireBreath strongly discourages using things like XPCOM for exactly the reason that smorgan mentioned.

like image 30
taxilian Avatar answered Oct 11 '22 00:10

taxilian