#401880 Extensions are not checked for target platform compatibility at startup

Package:
iceweasel
Source:
firefox-esr
Submitter:
Gianluigi Tiesi
Date:
2010-08-11 05:21:03 UTC
Severity:
important
Tags:
#401880#5
Date:
2006-12-06 15:25:31 UTC
From:
To:
iceweasel is not able to install google toolbar and also other
extensions.

google site says that I need firefox
and manually installing
http://dl.google.com/firefox/google-toolbar.xpi

I get:
"Google Toolbar for Firefox" could not be installed because it's not
compatible with yout iceweasel build type (linux-gnu_x86_64-gcc3).

Upgrading from firefox 1.5 the ext was still working with some
issuses but it doesn't install from scratch in iceweasel.

I've also have similar issues with icedove and enigmail
but I would have some feedback here before submitting
another bug on icedove, since I think the problem is the same.

Regards

#401880#10
Date:
2006-12-06 18:38:10 UTC
From:
To:
I guess it's normal stuff. This extension provides binary components,
that are only provided for windows. I guess installing from scratch
makes iceweasel check if it can register the components, which fail, and
reject the extension then.
IIRC, there was no similar check in Firefox 1.5, so if version 2.0 just
assumes that since the extension was installed it's fine without
checking the components again, then well, the extension is installed,
but half working.

That'd be my explanation of the phenomenon.

Mike

#401880#15
Date:
2006-12-06 19:22:11 UTC
From:
To:
hmm no, it uses binaries stuff only on windows (you can look into the xpi)
and also I was using it with firefox 1.5 on same debian amd64 system without
problem, also upgrading the profile to iceweasel still works but with some issues,
new installations are broken

Regards

#401880#20
Date:
2006-12-06 21:34:13 UTC
From:
To:
I don't know how you installed it in firefox 1.5, but the extension does
say its target platform is windows:

$ wget http://dl.google.com/firefox/google-toolbar.xpi
$ unzip google-toolbar.xpi
$ grep em:targetPlatform install.rdf
    <em:targetPlatform>WINNT</em:targetPlatform>

The may have been a bug in firefox 1.5 that made it possible to install
the extension, but the fact is, this extension tells firefox/iceweasel
not to install it on something else than a windows build.

Closing this non-bug.

Mike

#401880#21
Date:
2006-12-06 22:16:00 UTC
From:
To:
Mike Hommey wrote:

not correct, download firefox2 from mozilla.org
run it (firefox --no-remote or iceweasel will run)

now google page doesn't bail to mozilla.org
and you can safely install the extension,
then run iceweasel and automagically you'll
have google toolbar.

I also have same problem with icedove and __LINUX__ version
of enigmail.

please don't close bugs without at least checking
(google reports linux compatibility in the page)
thx

#401880#26
Date:
2006-12-07 06:54:57 UTC
From:
To:
I did check, as the wget/unzip/grep part shows. The fact is... they
filter by user agent on the xpi file...
so you can just get
http://dl.google.com/firefox/google-toolbar-linux.xpi, it's much better.
But this xpi contains components, which are linked against libstdc++5,
and built with gcc 3, which is not compatible with iceweasel (linked
against libstdc++6 and built with gcc 4).

That it works with upstream tarballs is normal, it's built with gcc 3
and linked against libstdc++5...

It's always been like this and won't change. What did change though, is
that version 2.0 now refuses to install extensions when they are not
compatible. What you're doing by installing the google toolbar with
upstream firefox 2.0 and running the same profile (yep, profiles are
shared) with iceweasel works around the check, since obviously it's only
done at install time. Not at startup time.

If that's the bug you care about, then I'll retitle and reopen it.

Mike

#401880#31
Date:
2006-12-07 07:08:51 UTC
From:
To:
And if more proof is necessary:

$ wget http://dl.google.com/firefox/google-toolbar-linux.xpi
$ unzip google-toolbar-linux.xpi
$ sed -i '/targetPlatform/ d' install.rdf
$ zip -u google-toolbar-linux.xpi install.rdf
$ zip -d google-toolbar-linux.xpi "META-INF/*"

(removing META-INF is necessary, since it contains signatures that are
not valid any more now we changed a file in the archive)

And then, you can install this modified extension.

Mike

#401880#36
Date:
2006-12-07 07:32:02 UTC
From:
To:
clone 401880 -1
retitle -1 ABI and OS not correctly returned by nsIXULRuntime
retitle 401880 Extensions are not checked for target platform compatibility at startup
thanks

There are 2 different bugs, actually.

Mike

#401880#51
Date:
2010-08-10 19:33:14 UTC
From:
To:
I could reproduce this bug with the version of Firefox which
I downloaded froem the firefox web site. It was Firefox
3.6.8 (german version) for linux.

A bug report in te FF bigzilla has been (re-)submitted.

https://bugzilla.mozilla.org/show_bug.cgi?id=388722


- -- Package-specific info:

- -- Extensions information
Name: Default
Location: /usr/lib/iceweasel/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
Package: iceweasel
Status: enabled

Name: Delicious Bookmarks
Location: ${PROFILE_EXTENSIONS}/{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}
Status: user-disabled

Name: Deutsch (DE) Language Pack
Location: /usr/lib/iceweasel/extensions/langpack-de@firefox.mozilla.org
Package: iceweasel-l10n-de
Status: enabled

Name: FRITZ!Box AddOn
Location: ${PROFILE_EXTENSIONS}/fb_add_on@avm.de
Status: user-disabled

Name: Geo
Location: ${PROFILE_EXTENSIONS}/{C549AC23-0086-4637-A8BE-6A9020B520F7}
Status: user-disabled

Name: GetVideo
Location: ${PROFILE_EXTENSIONS}/{a51dd9d0-56c3-11db-b0de-0800200c9a66}
Status: app-disabled

Name: Torbutton
Location: ${PROFILE_EXTENSIONS}/{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}
Status: user-disabled

Name: Web Search Pro
Location: ${PROFILE_EXTENSIONS}/{8B8A525A-CFCA-44cf-81C3-3969E6CB96E0}
Status: user-disabled

Name: Zotero
Location: ${PROFILE_EXTENSIONS}/zotero@chnm.gmu.edu
Status: user-disabled

- -- Plugins information
Name: DivX® Web Player
Location: /usr/lib/mozilla/plugins/libtotem-mully-plugin.so
Package: totem-mozilla
Status: enabled

Name: Helix DNA Plugin: RealPlayer G2 Plug-In Compatible
Location: /usr/lib/mozilla/plugins/nphelix.so
Package: realplayer
Status: enabled

Name: Java(TM) Plug-in 1.5.0_22-b03
Location: /usr/lib/jvm/java-1.5.0-sun-1.5.0.22/jre/plugin/i386/ns7/libjavaplugin_oji.so
Package: sun-java5-bin
Status: enabled

Name: QuickTime Plug-in 7.6.6
Location: /usr/lib/mozilla/plugins/libtotem-narrowspace-plugin.so
Package: totem-mozilla
Status: enabled

Name: Shockwave Flash
Location: /usr/lib/flashplayer-mozilla/libflashplayer.so
Package: flashplayer-mozilla
Status: enabled

Name: Skype Buttons for Kopete
Location: /usr/lib/mozilla/plugins/skypebuttons.so
Package: kopete
Status: enabled

Name: VLC Multimedia Plugin (compatible Totem 2.30.2)
Location: /usr/lib/mozilla/plugins/libtotem-cone-plugin.so
Package: totem-mozilla
Status: enabled

Name: Windows Media Player Plug-in 10 (compatible; Totem)
Location: /usr/lib/mozilla/plugins/libtotem-gmp-plugin.so
Package: totem-mozilla
Status: enabled


- -- Addons package information
ii  flashplayer-mo 1:10.1.53.64-0 Macromedia Flash Player
ii  iceweasel      3.5.11-1       Web browser based on Firefox
ii  iceweasel-l10n 1:3.5.11+debia German language package for Iceweasel
ii  kopete         4:4.4.5-1      instant messaging and chat application
ii  realplayer     1:10.0.9-0.2   RealPlayer 10 based on the open source Helix
ii  sun-java5-bin  1.5.0-22-0lenn Sun Java(TM) Runtime Environment (JRE) 5.0 (
ii  totem-mozilla  2.30.2-2+b1    Totem Mozilla plugin

- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages iceweasel depends on:
ii  debianutils                   3.4        Miscellaneous utilities specific t
ii  fontconfig                    2.8.0-2.1  generic font configuration library
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.4-8  GCC support library
ii  libglib2.0-0                  2.24.1-1   The GLib library of C routines
ii  libgtk2.0-0                   2.20.1-1   The GTK+ graphical user interface
ii  libnspr4-0d                   4.8.4-2    NetScape Portable Runtime Library
ii  libstdc++6                    4.4.4-8    The GNU Standard C++ Library v3
ii  procps                        1:3.2.8-9  /proc file system utilities
ii  xulrunner-1.9.1               1.9.1.11-1 XUL + XPCOM application runner

iceweasel recommends no packages.

Versions of packages iceweasel suggests:
ii  libgssapi-krb5- 1.8.1+dfsg-5             MIT Kerberos runtime libraries - k
ii  libkrb53        1.6.dfsg.4~beta1-5lenny4 MIT Kerberos runtime libraries
pn  mozplugger      <none>                   (no description available)
ii  ttf-lyx         1.6.7-1                  TrueType versions of some TeX font
pn  ttf-mathematica <none>                   (no description available)
ii  xfonts-mathml   4                        Type1 Symbol font for MathML
ii  xprint          2:1.6.0-4                X11 print system (binary)

Versions of packages xulrunner-1.9.1 depends on:
ii  libasound2              1.0.23-1         shared library for ALSA applicatio
ii  libatk1.0-0             1.30.0-1         The ATK accessibility toolkit
ii  libbz2-1.0              1.0.5-4          high-quality block-sorting file co
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  libcairo2               1.8.10-4         The Cairo 2D vector graphics libra
ii  libdbus-1-3             1.2.24-3         simple interprocess messaging syst
ii  libfontconfig1          2.8.0-2.1        generic font configuration library
ii  libfreetype6            2.4.0-2          FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.4.4-8        GCC support library
ii  libglib2.0-0            2.24.1-1         The GLib library of C routines
ii  libgtk2.0-0             2.20.1-1         The GTK+ graphical user interface
ii  libhunspell-1.2-0       1.2.11-1         spell checker and morphological an
ii  libjpeg62               6b1-1            The Independent JPEG Group's JPEG
ii  libmozjs2d              1.9.1.11-1       The Mozilla SpiderMonkey JavaScrip
ii  libnspr4-0d             4.8.4-2          NetScape Portable Runtime Library
ii  libnss3-1d              3.12.6-3         Network Security Service libraries
ii  libpango1.0-0           1.28.1-1         Layout and rendering of internatio
ii  libpng12-0              1.2.44-1         PNG library - runtime
ii  libreadline6            6.1-3            GNU readline and history libraries
ii  libsqlite3-0            3.7.0-1.1        SQLite 3 shared library
ii  libstartup-notification 0.10-1           library for program launch feedbac
ii  libstdc++6              4.4.4-8          The GNU Standard C++ Library v3
ii  libx11-6                2:1.3.3-3        X11 client-side library
ii  libxrender1             1:0.9.6-1        X Rendering Extension client libra
ii  libxt6                  1:1.0.7-1        X11 toolkit intrinsics library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

- -- no debconf information
iEYEARECAAYFAkxhqXgACgkQqVj5VlP9Od1flACgkGqEQFK3WkL1JWWL51jEeIoG
3uEAoJsg0c8wTTDQJEg+noBam8gRMq9q
=DgMO
-----END PGP SIGNATURE-----

#401880#56
Date:
2010-08-10 22:39:02 UTC
From:
To:
I guess you ment to send that to bug #592521, not #401880.

Mike

#401880#61
Date:
2010-08-11 05:15:30 UTC
From:
To:
Mike Hommey <mh@glandium.org> writes:

[...]

Yes, indeed. Shame on me :-(



Thanks,


Sebastian