Closed Bug 292314 Opened 20 years ago Closed 5 years ago

Window.prototype.focus() doesn't change focus to the tab containing the specified window

Categories

(Firefox :: Tabbed Browser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 416771

People

(Reporter: stryker330, Unassigned)

Details

(Keywords: testcase, Whiteboard: [see bug 416771])

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 When calling the focus method on a window object, the Firefox window comes into focus, but not the tab containing the aforementioned window object. This is most noticable when a popup window tries to call window.opener.focus(). Reproducible: Always Steps to Reproduce: 1) In an HTML document (A), open another HTML document (B) via window.open(). 2) Select another tab (C) (create one if you need to). 3) In B, call window.opener.focus(). Actual Results: Window containing A is focused, but the tab containing A isn't selected/displayed. Expected Results: Tab containing A should be selected/displayed.
Attached file test case
Keywords: testcase
Is this still a valid bug? Try to confirm it with a nightly build http://www.mozilla.org/developer and report back whether this issue is still pertinent. Otherwise, this bug will be marked INVALID for for inactivity in excess of 60 days (pre-1.0.4). I am self-assigning to track this bug and will reassign to original owner if this bug is still valid.
Assignee: nobody → wbzsinj
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+ Bug still exists on this build.
Assignee: wbzsinj → nobody
clearer summary
Summary: window.focus() doesn't change display to the focused tab → Window.prototype.focus() doesn't change focus to the tab containing the specified window
Fifrefox 3.0.4, problem is still there even if you check the advanced javascript option 'Raise window thing'. That's REALLY annoying for intranet applications and i don't understand that it's still there 3 years later.
Status: UNCONFIRMED → NEW
Ever confirmed: true
In Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 I see that not only the "opener" tab is not selected, but the opener window is not activated either (if the active tab in the first window is not the opener tab). This is related to bug 416771 and bug 357379.
Depends on: 416771
Whiteboard: [see bug 416771]
Status: NEW → RESOLVED
Closed: 5 years ago
No longer depends on: 416771
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: