Can NPAPI plugins be used on Firefox Mobile on Android? Is there a reference sample for registering an NPAPI plugin on Firefox Mobile?
My extension uses an NPAPI and I would like to port it to Firefox Mobile. Is this possible?
All Replies (2)
Firefox for mobile does have code to support NPAPI plugins, but it is disabled by default and not fully supported.
To enable plugin support, go to the "about:config" page, then search for "plugin.disable" and change the value to "false."
On Maemo and on desktop operating systems, you can install plugins by placing them in standard locations like /usr/lib/mozilla/plugins.
I don't know whether there's a way to install NPAPI plugins for use by Firefox. (NPAPI plugin support is completely untested on Android, and may or may not work at all.)
By using the following command it's possible to specify MOZ_PLUGIN_PATH on Android. But I don't know if it's possible to load plugins on Android.
am start -a org.mozilla.firefox -n org.mozilla.firefox/org.mozilla.firefox.App --es env0 MOZ_PLUGIN_PATH=<path>
Update: I have built and loaded npsimple, but I haven't got scripting to work yet. https://github.com/mikma/npsimple
Modified