Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302998 - www-client/mozilla-firefox-3.6 doesn't obtain focus when loaded from external applications in gnome
Summary: www-client/mozilla-firefox-3.6 doesn't obtain focus when loaded from external...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-31 16:31 UTC by peng shao
Modified: 2011-12-15 23:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peng shao 2010-01-31 16:31:45 UTC
I noticed this problem after I updated firefox from 3.5.7 to 3.6. The problem is that when I first open a firefox window/tab then click a url address from external applications, typically qterm, then the newly opened tab of the firefox did not obtain the focus. If I type "firefox test.html" in terminal then similar issue happened. I tried to disable/enable "when I open a link in a new tab, switch to it immediately" in preference but it seems to have no effect on this issue. To my understanding if I load firefox from an external application it means I need to view it immediately, and it is just the way firefox behaves before 3.6. I feel like this is an upstream bug because I tested in ubuntu and it has this problem as well. I reported it to mozilla but after a few days nobody responded my report:( so I report it here to see if we can handle this problem( I apologize if such report is not encouraged )


Reproducible: Always

Steps to Reproduce:
1.open firefox, then try to use the current tab to browse any url except the default homepage(this seems to be necessary sometimes to reproduce this problem). 
2.load a new tab/window from external applications, such as MSN chat client, qterm, terminal, any of the common external applications which contains url link and can load firefox
3.

Actual Results:  
The newly opened tab or window doesn't obtain focus, instead, the corresponding title of firefox in task bar is highlighted indicating it is active, but the corresponding window doesn't show up. I have to use mouse to click its title in task bar or use alt-tab

Expected Results:  
As 3.5.7 or before. The newly triggered firefox should obtain the focus.

Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 31 Jan 2010 14:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cleartype cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv jpeg ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png policykit ppds pppd python qt3support quicktime readline reflection sdl session spell spl sql sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vim-syntax vorbis webkit x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ice1712" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

[ebuild   R   ] www-client/mozilla-firefox-3.6-r1  USE="alsa dbus gnome libnotify startup-notification -bindist -custom-optimization -java -wifi" LINGUAS="-af -ar -as -be -bg -bn -bn_BD -bn_IN -ca -cs -cy -da -de -el -en -en_GB -en_US -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -id -is -it -ja -ka -kk -kn -ko -ku -lt -lv -mk -ml -mr -nb -nb_NO -nl -nn -nn_NO -oc -or -pa -pa_IN -pl -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW" 0 kB
[ebuild   R   ] x11-wm/metacity-2.28.0  USE="-test -xinerama" 0 kB
(I don't know if it has anything to do with metacity... )

Thanks for any concern and comments :)
Comment 1 Jory A. Pratt gentoo-dev 2010-02-05 13:50:58 UTC
Please turn accessibility.tabfocus_applies_to_xul to true in about:config and retest.
Comment 2 peng shao 2010-02-05 17:13:36 UTC
(In reply to comment #1)
> Please turn accessibility.tabfocus_applies_to_xul to true in about:config and
> retest.
> 

I turned it to be true but it doesn't help :( Thanks
Comment 3 Jory A. Pratt gentoo-dev 2010-02-21 16:38:59 UTC
browser.display.use_focus_colors;false if changes to true it will raise the window as expected, the problem then becomes focus color'd will make it impossible to see what you are typing in a text box area.
Comment 4 peng shao 2010-02-22 02:53:16 UTC
(In reply to comment #3)
> browser.display.use_focus_colors;false if changes to true it will raise the
> window as expected, the problem then becomes focus color'd will make it
> impossible to see what you are typing in a text box area.
> 

I tried to set "browser.display.use_focus_colors" to be true, but after started firefox I could reproduce this problem again. Also as you said I could not see what I am typing in a text box :(

Thanks.

Comment 5 Jory A. Pratt gentoo-dev 2010-12-30 03:19:55 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > browser.display.use_focus_colors;false if changes to true it will raise the
> > window as expected, the problem then becomes focus color'd will make it
> > impossible to see what you are typing in a text box area.
> > 
> 
> I tried to set "browser.display.use_focus_colors" to be true, but after started
> firefox I could reproduce this problem again. Also as you said I could not see
> what I am typing in a text box :(
> 
> Thanks.
> 

Please update bug with problem still exists or closes thank you.
Comment 6 Jory A. Pratt gentoo-dev 2011-12-15 23:12:45 UTC
Reopen if you can still duplicate, I have tested and been unable to duplicate with fx-8