It needs the MIME type application/x-xpinstall
If you don't have control over the MIME type settings on your server you can
launch an XPInstall regardless of MIME type using the javascript
InstallTrigger.install( { "package name" : "my.xpi" } )
my.xpi can be either a full URL or relative to the page with the above
command. The "package name" is displayed in the confirmation dialog, it's
simply decorative/informative.
-Dan Veditz
runtime wrote:
> Hi,
> when i download xpi from http://www.mozilla.org/quality/smartupdate/xpis/,
> or use File->Open File... to open my xpi arch, it works fine. However, after
> i drop it into an apache webserver or a tomcat server, mozilla opens the xpi
> directly in the browser window and shows the binary content.
> Does anybody know it?
>
> Thanks
>
> Nick
>
>