[Companion] About Yahoo! Toolbar (Mozilla) wrong version!
Jim Reisert AD1C
jjreisert at alum.mit.edu
Thu Dec 9 07:43:02 EST 2004
So if I clean my registry, delete my profile, delete my Firefox installation,
re-install Firefox, create a new profile and install the Yahoo! toolbar, where
do the "ghosts" come from?
- Jim
--- Brian Erst <azzipsderf-companion at yahoo.com> wrote:
> The code is in yahooToolbarOverlay.js:
>
> var cExtMan =
>
Components.classes["@mozilla.org/extensions/manager;1"].getService(Components.interfaces.nsIExtensionManager);
> // try to grab our info
> var item =
> cExtMan.getItemList(ID,Components.interfaces.nsIUpdateItem.TYPE_EXTENSION,
> {});
> if(item && item[0])
> return item[0].version;
> else
> return 0;
>
> My guess (and this is ONLY a guess - I think Dave Viner added the code)
> is that in some cases, the item list being returned ALSO contains the
> ghosts of extensions past, sorted in order.
>
> As itemlists have a "length" property, it may be possible to try to get
> the last item in the list instead of the first one.
>
> A possible (untested) workaround:
>
> if (item && item.length > 0)
> return item[item.length-1].version;
> else
> return 0;
>
> Again, I have no idea if this will work. I just have a hunch that if a
> method returns a list of items, this is probably due to the fact that
> it at least occassionally returns more than one value. The code uses
> the blackbox that is the Netscape XUL Extensions, so who know what
> Moz/Firefox is doing behind the scenes.
>
> - Brian Erst
>
> --- Jim Reisert AD1C <jjreisert at alum.mit.edu> wrote:
>
> > This problem persists on ONE computer using the latest releases.
> >
> > I can't find this string in the registry.
> >
> > Can someone who has access to the source code please try to determine
> >
> > exactly WHAT is being read when "About Yahoo! Toolbar (Mozilla)" is
> > called?
> >
> > Current versions are:
> >
> > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
> > Gecko/20041109 Firefox/1.0
> >
> > Companion 0.5.5.200412107
> >
> > Thanks - Jim
> >
> > At 12:58 PM 10/16/2004, Jim Reisert AD1C wrote:
> > >OK, this problem is driving me NUTS!
> > >
> > >I am running:
> > >
> > > Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001
> >
> > > Firefox/0.10.1
> > >
> > >I installed the companion from:
> > >
> > > http://downloads.mozdev.org/companion/alpha.xpi
> > >
> > >Tools -> Extensions reports that this is the 0.54.20041013 version.
> > >
> > >But the About box reports:
> > >
> > >[]
> > >
> > >
> > >I have uninstalled and re-installed Firefox. I deleted my Firefox
> > >profile. I went through the registry and removed references to
> > >Mozilla. I uninstalled Java. Still, I can't get the right version
> > to show up.
> > >
> > >I have two other PCs in the house running the same versions of
> > Firefox and
> > >the Companion and they BOTH show the correct version.
> > >
> > >I am pulling my hair out! Anyone have any idea where I can find this
> > bad
> > >info and DELETE IT?
> > >
> > >Thanks - Jim
> > >
> > --
> > Jim Reisert AD1C, 7 Charlemont Court, North Chelmsford, MA 01863
> > USA +978-251-9933, <jjreisert at alum.mit.edu>, http://www.ad1c.com
> > > _______________________________________________
> > Companion mailing list
> > Companion at mozdev.org
> > http://mozdev.org/mailman/listinfo/companion
> >
>
>
=====
Jim Reisert AD1C, 7 Charlemont Court, North Chelmsford, MA 01863
USA +978-251-9933, <jjreisert at alum.mit.edu>, http://www.ad1c.com
More information about the Companion
mailing list