Any example of writing an NPAPI plugin in Linux?
Asked Answered
N

1

8

I need to write a browser plugin to communicate with another process, and it seems I have to use NPAPI plugins. Is there any example or open source NPAPI plugin I can refer to?

Many thanks for your reply.

Summary of answers

  1. http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/
  2. http://www.firebreath.org/
  3. http://code.google.com/p/nixysa/
  4. http://code.google.com/p/npapi-file-io/

2 and 3 are both frameworks to make plugin development easier.


I found one example at http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/

Niels answered 15/12, 2009 at 8:8 Comment(1)
You can refer to code.google.com/p/npapi-file-ioHedvig
P
7

you could also use the open source FireBreath plugin framework; they are nearing a 1.0 release for windows only, but it would not be hard to port it to linux; mac os shouldn't be bad either, but it will take a little work to get CMake to generate the correct bundle type =]

Yes, I am one of the primary maintainers, so I'm a bit biased. You can also find some good general information on how NPAPI works on my blog, starting here: http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/

Phillipp answered 20/12, 2009 at 7:30 Comment(3)
Update: Linux support is now there, though experimentalPhillipp
Update 2: Mac support is also there, but experimentalPhillipp
Update 3: Mac and Linux support are both stable (have been for awhile) =]Phillipp

© 2022 - 2024 — McMap. All rights reserved.