NSAPI Plugin installation

281 views
Skip to first unread message

Marwin

unread,
Aug 20, 2010, 8:06:13 AM8/20/10
to Chromium-extensions
Hi all,
some time ago we developed NSAPI plugin for firefox and it works well,
but now we want to add plugin to Google Chrome. I have big problem
with installation to Google Chrome. Our plugin consists of two files -
npfiller.dll and nsIFillerPlugin.xpt . Our Plugin may be activated
when you open HTML page in browser which consist object element with
certain mime type. e.g.: <object type="application/x-filler-plugin"
"name='XMLFiller' id='XMLFiller'......./>

I tried two type of installation:
1) I created directory in chrome folder (c:\Users\Mara\AppData\Local
\Google\Chrome\Application\plugins\) and I copied plugins files to
this folder. When I opened chrome and jumped to site with installed
plugins (aboutlugins). I saw only location of plugin c:\filler
\npfiller.dll, but no mime type was defined, no plugin name was
displayed see: http://img638.imageshack.us/i/polugin.png/

2) I found this site: https://developer.mozilla.org/en/Plu...nstall_problem
. So i create windows registry reg file:

[HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@company.cz/
Filler,version=4.0]
"Path"="c:\\filler\\npfiller.dll"
"ProductName"=Filler"
"Description"="Filler Plugin"
"Version"="4.0"
"XPTPath"="c:\\filler\\nsIFillerPlugin.xpt"

[HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@company.cz/
Filler,version=4.0\MimeTypes]

[HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@company.cz/
Filler,version=4.0\MimeTypes\application/x-filler-plugin]
"Description"="Filler plugin"
"Suffixes"="x-filler-plugin"

Unfortunately the result is same like in 1) . I can see only path to
plugin in aboutlugins page.

So the plugin doesn't start when i go to HTML page with object element
with our mime type.

What am I doing wrong?
Thanks for every reply.


Regards
Marek

Arne Roomann-Kurrik

unread,
Aug 20, 2010, 5:32:41 PM8/20/10
to Marwin, Chromium-extensions
I'm not very familiar with this, but I'll try to point you in the right direction.

Chrome uses NPAPI, so I don't think your NSAPI plugin will work.  I have no experience with NSAPI, but hopefully porting won't be troublesome.

Here's the documentation we point to for NPAPI:

Here's the documentation on registering an NPAPI plugin with a mime-type: 

And finally, here are our docs which talk about packaging an NPAPI plugin as a Chrome extension (not required, but you might be interested):

Hope this helps,
~Arne



--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Reply all
Reply to author
Forward
0 new messages