Red Hat Bugzilla – Bug 832795
Firefox 13 steals focus, breaking GNOME 3 features
Last modified: 2012-09-04 10:12:31 EDT
Description of problem:
When opening an URL with Firefox from another programm/window, Firefox now steals the focus from the original application and brings itself to top.
Mozilla seems to regard this to be a feature, not a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=762374
But this breaks the feature introduced with GNOME 3 to decide whether a window is allowed to bring itself to top and steal focus or to be notified clickably about a new window/tab. This makes Firefox 13 behave completely different from other applications running on GNOME 3.
I was unable to find a configuration option or about:config entry to reset this to the original behaviour.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have Firefox running.
2. Start an other application to open an URL with Firefox 13 from, e.g. an e-mail with a link in Evolution.
3. Click the on link.
Firefox comes uninvitedly to top and steals focus from the other application.
In the standard configuration, a notification should appear, informing about a newly opened Firefox window/tab. Firefox should only come to top and get focus if one clicks on this notification.
The window manager should be able to maintain which applications steal focus in which situations. The user may modify the standard behaviour using Shell Extensions.
The problem occurs using the GNOME 3 desktop on both Fedora 16 and Fedora 17 using firefox-13.0-1.fc16 and firefox-13.0-1.fc17.
The problem occurs also in KDE with firefox-13.0.1-1.fc16.x86_64.
The workaround is in about:config set "browser.tabs.loadDivertedInBackground" to true.
This is terrible change. I usually open more tabs from thunderbird for reading them later.
I wonder why this change affects gnome-shell only, the fallback mode works on the old way.
The workaround mentioned by Marcela does unfortunately not restore the original behaviour, the differences with "browser.tabs.loadDivertedInBackground" set to true compared to the original behaviour are as follows:
- Tabs in Firefox open in the background, thus not the most recently opened tab is selected, but the tab that was opened the last time Firefox was used directly.
- The GNOME Shell does not notify the user when a new tab has been opened, so the user can not simply click on the notification to bring Firefox to top.
So this does not even roughly solve the problem.
If an applications wants to open Firefox on background it can set the time stamp to 0 for that.