Closed Bug 245056 Opened 20 years ago Closed 20 years ago

Focus Shifts Incorrectly To Tabs Opened In Background

Categories

(SeaMonkey :: Tabbed Browser, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 124750

People

(Reporter: billg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040216 Debian/1.6.x.1-10
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040216 Debian/1.6.x.1-10

Tabs are configured to open in background and on a middle-click.

However, focus frequently shifts incorrectly to a newly opened tab.

For example:

1.  Close all existing tabs.
2.  Run a search in Google.
3.  Move down the search results page, middle clicking to launch new backgorund
tabs.
4.  Tabs will open in background, but, often, focus will shift from the Google
results page to the last opened tab. The content of that page will display, but
the corresponding tab itself remains grayed out.  However, the tab on the Google
results page remains highlighted, although the page's content is not displayed.

Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
Possible a duplicate of bug 124750.

Reporter try this:
- go to google.com;
- open Image search page in another tab that loads in background;
- the new tab will steal the focus;

Look for javascript textbox.focus() in other instances where you see this bug.
I'm not seeing any such javascript calls in any of the affected pages. Behavior
appears to be random: a site that steals focus on one invocation does not in the
next.
This will be hard to deal with if there is no consistent way to reproduce.
See also bug 137015, maybe it's something similar.

The list of focus related bugs is long anyway, see bug 83552, and bug 140346.

*** This bug has been marked as a duplicate of 124750 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.