Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434542 - www-client/firefox-bin-15.0 is trying to automatically upgrade via Mozilla Upgrade path
Summary: www-client/firefox-bin-15.0 is trying to automatically upgrade via Mozilla Up...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 461590 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-10 08:30 UTC by Tim Bowers
Modified: 2013-04-08 14:31 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mozilla.cfg (mozilla.cfg,78 bytes, text/plain)
2013-04-03 02:16 UTC, Anton Bolshakov
Details
local-settings.js (local-settings.js,127 bytes, text/plain)
2013-04-03 02:20 UTC, Anton Bolshakov
Details
mozilla.cfg (mozilla.cfg,75 bytes, text/plain)
2013-04-03 06:23 UTC, wuodan
Details
mozilla.cfg (mozilla.cfg,78 bytes, text/plain)
2013-04-03 06:39 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Bowers 2012-09-10 08:30:04 UTC
Firefox-bin-15.0 appears to have the "automatic" upgrades from mozilla turned on. While the upgrade itself fails if you hit yes (it never actually downloads anything from what I can tell) having the box pop up periodically is annoying at best.

Going to the "about firefox" page shows you your running the release canidate and there is an update at firefox.com.

Reproducible: Always

Steps to Reproduce:
1. Emerge firefox-bin-15.0
2. Go to help -> about firefox -> watch check for updates timer.
3. Once its found new updates quit firefox; restart firefox
4. Wait unspecified amount of time; "Updates available" box appears teling you to upgrade your firefox.
Actual Results:  
Upgrade firefox box appears

Expected Results:  
Upgrades should be blocked by default (as they won't work anyway)

Portage 2.1.11.9 (default/linux/amd64/10.0/desktop, gcc-4.5.4, glibc-2.15-r2, 3.2.12-gentoo x86_64)
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.1
Timestamp of tree: Wed, 05 Sep 2012 05:15:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-ebuilds
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ rsync://rsync.mirrorservice.org/www.ibiblio.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://gentoo.virginmedia.com/sites/gentoo http://gentoo.virginmedia.com/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/tim.bowers/bin/ebuilds"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acc acl acpi alsa amd64 amr apache2 apng asf avi bash-completion berkdb bittorrent branding bzip2 cairo caps cdda cli consolekit cracklib cups cxx dbus divx divx4linux docs dri dts dvd dvdr emboss encode exif extensions extras fam fbcondecor ffmpeg firefox flac gd gif glibc-omitfp gphoto2 gtk gtk2 gudev iconv java jpeg lastfm lcms ldap libnotify live mad mmx mng modules mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib mysql mysqli ncurses njb nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis opengl openmp oscar pam pango pcre pdf perl png policykit ppds pppd python qemu qt3support readline samba sasl sdl server session spell sse sse2 ssl startup-notification svg swat tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vhosts video virt-network vorbis wmp workbench wxwidgets x264 xcb xine xinerama xml xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

[ebuild   R   ~] www-client/firefox-bin-15.0  USE="startup-notification" LINGUAS="en_GB -af -ak -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -nso -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW -zu" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 1 needle 2012-09-10 08:37:27 UTC
confirming, the update box in firefox (15.0) preferences is enabled by default after a installation. Firefox wants to fetch an update from internet, You need to disable it manually. 

Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r2, 3.4.9-gentoo x86_64)
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.1
Timestamp of tree: Sun, 09 Sep 2012 00:45:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.1.4-r3, 3.2.3
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo mpd proaudio zugaina needless
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10.3 Oracle-BCLA-JavaSE skype-eula PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
DISTDIR="/gentoo-portage/distfiles/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mpd /var/lib/layman/pro-audio /var/lib/layman/zugaina /usr/local/portage"
SYNC="rsync://lx/gentoo-portage"
USE="7zip X aac acl acpi alsa amd64 apm bash-completion berkdb bindist bonobo bzip2 cairo cal3d cddb cli cpudetection cracklib crypt cue curl custom-flags cxx dga directfb diskio dri drm encode expat faad fbcon flac fontforge fortran fuse gdbm gif gpm gtk gtk3 hscolour iconv imagemagick jpeg jpeg2k lame laptop libcaca libclamav libgda libmms libsamplerate libsndfile lm_sensors logrotate lua lzo mad mbox mmx modpack modules mp3 mpeg mplayer mudflap multilib musepack museplug ncurses noamazon nptl nsplugin nspluginwrapper ogg oggvorbis opengl openmp pam pango pcre pdf png pppd python3 qt3support readline savedconfig schroedinger screen sensord session sox sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 svg tcpd tga threads tiff truetype unicode vaapi vdpau vim-syntax vorbis wavpack wifi xft xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Konstantin (elxa) 2013-01-21 14:48:35 UTC
I get notifications about available updates with www-client/firefox-bin-18.0
Comment 3 Peter Weilbacher 2013-02-06 19:23:25 UTC
Still happening, just now I got an alert for 18.0.1.

Hmm, firefox-bin-prefs.js does set app.update.enabled = false. Why is it then marked as bold (user set) in about:config if that's already a global default? Could it be that Firefox is not picking up stuff from firefox-bin-prefs.js for some reason?
Comment 4 Dave Kemper 2013-02-20 21:21:28 UTC
(In reply to comment #3)
> Could it be that Firefox is not picking up stuff from
> firefox-bin-prefs.js for some reason?

This appears to be the case.  I just tested this on a simple option: in the Firefox GUI, it is under Preferences -> Advanced -> General -> Search for text when I start typing, and internally it is known as "accessibility.typeaheadfind".  It is set to false (box unchecked in the GUI) by default.

I added this line to /opt/firefox/defaults/pref/firefox-bin-prefs.js:

pref("accessibility.typeaheadfind",        true);

and then ran Firefox with a brand new profile:

firefox-bin -no-remote -P new

After going through the short wizard to create the new profile, I looked in the GUI's Preferences settings, and the "Search for text when I start typing" box was still unchecked.  So Firefox did not pick up this setting from firefox-bin-prefs.js.

It appears that Firefox stopped honoring this file sometime between firefox-bin 10.0.11 and 15.0.
Comment 5 Dave Kemper 2013-02-20 21:53:50 UTC
Further complicating matters, it looks like the internal name of one of the relevant options has changed: it is called app.update.autoInstallEnabled in firefox-bin-prefs.js, but it is now known simply as app.update.auto in recent Firefoxes.

(This bug report is filed under AMD64, but it is not limited to that platform; I'm seeing it on x86.  The problem is almost certainly platform independent.)
Comment 6 Jory A. Pratt gentoo-dev 2013-03-13 20:15:18 UTC
*** Bug 461590 has been marked as a duplicate of this bug. ***
Comment 7 Anton Bolshakov 2013-04-03 02:16:21 UTC
Created attachment 344142 [details]
mozilla.cfg
Comment 8 Anton Bolshakov 2013-04-03 02:20:01 UTC
Created attachment 344144 [details]
local-settings.js

guys, I found the solution for that problem. Forget about firefox-bin-prefs.js

Here it is:
https://support.mozilla.org/en-US/questions/944982

So we need to create two additional files:

/opt/firefox/defaults/pref/local-settings.js
/opt/firefox/mozilla.cfg

There are 3 methods available:
defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes

I used lockPref in my attachment, feel free to change it to defaultPref.

Can somebody verify and push that change please?
Comment 9 wuodan 2013-04-03 06:23:01 UTC
Created attachment 344156 [details]
mozilla.cfg

Reply 3 on that mozilla site is correct, the order on mozilla.cfg is important, see
https://support.mozilla.org/en-US/questions/944982#answer-410465

Correct would be:
lockPref("app.update.auto", false);
lockPref("app.update.enabled", false);

Thanks Anton!
Comment 10 Anton Bolshakov 2013-04-03 06:39:13 UTC
Created attachment 344158 [details]
mozilla.cfg

Thanks, updated. No, you need "//"

http://kb.mozillazine.org/Locking_preferences : "... and make the first line start with double forward slashes."
Comment 11 wuodan 2013-04-03 06:47:21 UTC
Comment on attachment 344156 [details]
mozilla.cfg

Tnx again!
With the first line being "//", the order no longer seems to matter. Obsoleted my mozilla.cfg.
Comment 12 Rick Farina (Zero_Chaos) gentoo-dev 2013-04-08 14:23:54 UTC
I have dropped roughly these fixes into firefox-bin-20.0-r1.ebuild, but removed the keywords.

If anyone would like to test please feel free.
Comment 13 Jory A. Pratt gentoo-dev 2013-04-08 14:31:00 UTC
Fixed in both fx-17.0.5-r1 and 20.0.0