Hi Willamette,
I have the same issue as you. I need to call navigator.plugins.refresh(true);
inside install.js for Netscape 6
but as Dan Veditz points out; it is a Netscape 6 bug and none of the window
objects can be accessed.
My question to you is the following: Have you tried window.location = <your
url> inside your callback function ?
If so, does this work ? Also, if it does, how do you use
InstallTrigger.install() method to specify the .xpi file and the
callback function ? I can't find any doc on this except the function's
prototype in the XPInstall APIs list:
boolean = install(nsXPITriggerInfo *aInfo);
What is nsXPITriggerInfo ? Javascript does not recognize XPITriggerInfo nor
TriggerInfo as objects ? How do you specify
the call back function and the .xpi file for the InstallTrigger.install() call
? In the alternative case, the startSoftwareUpdate function,
it is relatively straight forward, I use InstallTrigger.startSoftwareUpdate
(XPIPath, 0); where XPIPath is the full path name of the xpi file.
thanks for any feedback,
Charles Henri d'Argent, ingenieur en informatique
Willamette wrote:
> 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/
> >