hello there,
this message is addressed to the developers of Netscape 6.
I am experiencing the same behavior: I can not access the navigator object
inside the install.js script that the Netscape 6 thread is executing. Even
worst,
I cannot access the window object. I must call navigator.plugins.refresh(true);
if I want the newly installed plugin to be visible just after performing
SmartUpdate.
1.) How can I access the window object through Netscape 6's thread inside
install.js ?
2.) Is there some XPInstall api that replaces this plugins.refresh(true) call ?
In which case,
which function is it ? In which class ?
3.) Is this a Netscape bug ? When are you going to resolve this ? This is a
big issue!
4.) Is there some work-around to refresh ? (Besides closing the browser and
re-starting it).
thanks for any help/suggestions you may have,
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/
> >