I have an NPAPI plugin (that I originally wrote for Firefox) which I
want to download to Chrome over the internet using an embedded object
(using either EMBED or OBJECT, I don't mind which).

My plugin works fine under Chrome once I've manually copied the files
to a location that Chrome knows about using either of the following
manual methods:

  1) Using the Mozilla-defined plugin-finder system where you:
        * Copy the plugin files to a directory on the local system
        * Add registry entries to HKLM\SOFTWARE\MozillaPlugins
          to point to your plugin
or
   2) Copy the plugin files to the "plugins" subdirectory of Chrome

The problem that I have is getting the plugin downloaded over the
internet and installed into a location that Chrome knows about.

IE has a mechanism for downloading an ActiveX Control (wrapped in
a .CAB file) via an OBJECT tag, and Firefox has a mechanism for
downloading an NPAPI Plugin (wrapped in an .XPI file) via an EMBED
tag.

Although Chrome supports NPAPI plugins, the thing that I am missing is
how to automatically deploy it over the internet using an EMBED tag.
That is, I want to avoid putting text on my web page saying something
like "If you are using the Chrome browser, click here to install the
plugin CAB" and get the user to manually click on that link to
install.

I am using the dev-channel release of Chrome version 3.0.189.0.
I have the --enable-extensions flag appended to my Chrome.exe command
line.

I packaged my plugin files plus a manifest.json file into a .crx file
using the method described in
http://dev.chromium.org/developers/design-documents/extensions/packaging
and use an EMBED tag in my HTML to invoke it.  However, when I invoke
the HTML, Chrome does not download and install the extension and
plugin.  It simply states "No plugin available to display this
content".

My plugin is in the "plugins" subdirectory relative to my
manifest.json file at the point that I use Chrome.exe to produce
the .CRX file.

The EMBED tag I am using is as follows:

<embed id="MY_PLUGIN" type="application/my-plugin"
       width=640 height=480
       pluginspage="http://mysite.com/test/npapi/chrome/
myplugin.crx">

My manifest.json file contains:
{
    "name": "My plugin - NPAPI Plugin",
    "description": "My plugin - NPAPI Plugin",
    "version": "1.0.0.0",
    "format_version": 1,
    "id": "0100250D31938CE363354F8282F68C24EBF5B542",
    "plugins": [ { "path": "plugins/npmyplugin.dll", "public":
false } ]
}

However, Chrome isn't downloading my CRX file and installing the
extension and plugin.

What am I doing wrong ?

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to