You can specify a callback function in the InstallTrigger.install() method.
Since the callback is called when the installation is completed, I figured I
would call navigator.plugins.refresh(true) there.  That didn't seem to work;
so I put setTimeout("finished()", 10) in my callback and called
navigator.plugins.refresh(true) in finished().  That didn't work either.
I'm guessing that navigator.plugins.refresh(true) doesn't work in Netscape
6.  Maybe there is another call with the same functionality.  I read a
posting by Eric Krock that said you don't need to refresh the plugins in
Netscape 6 if you install through XPInstall.  That doesn't match my
experience.


"Tobias Trelle" <[EMAIL PROTECTED]> wrote in message
90qjio$[EMAIL PROTECTED]">news:90qjio$[EMAIL PROTECTED]...
> "Marcus Bailey" <[EMAIL PROTECTED]> schrieb ...
>
> > In my install script, navigator.plugins.refresh(true) yields an error
> > that "navigator is not defined" on Mozilla M18.
> >
> > Is there a replacement for the navigator object?
>
> I made the same experience. The navigator object is
> not visible from inside install.js. Daniel from the
> XPI group copied that.
>
> > How do you refresh the list of plug-ins in Mozilla without restarting
> > the browser?
>
> That's a good question I still have not answered.
> Our own plug-in is scriptable, so we'll have to make
> it an XPCOM component when upgrading to Netscape 6/Mozilla.
>
> XPCOM components are registered on browser startup.
> I don't know if they can be registered during runtime
> with XPInstall. That would be on my wish list.
>
>
> Regards, Tobias Trelle
> --
> CyCo Systems GmbH & Co. KG  _____________  Smart.Fast.3D.
> Tel  +49-(0)234-96217-0
> Fax  +49-(0)234-96217-17
> Web  http://www.cycosys.com/
>



Reply via email to