Open
Bug 641485
Opened 15 years ago
Updated 4 years ago
Cannot focus a tab opened in javascript
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
NEW
People
(Reporter: wosi, Unassigned)
Details
(Whiteboard: [dupeme?])
Attachments
(1 file)
|
835 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15
When opening a new window in javascript, and later calling the window's .focus() method, the window gets focused. When doing the same with tabs, this does not work. The focus stays on the current window.
Reproducible: Always
Steps to Reproduce:
1. Open the attached file
2. Click on the text "click here for opening in new tab"
3. The new tab opens
4. Go back to the first tab
5. Click on the text "click here for opening in new tab" again
click here for opening in new window
click here for opening in new tab
Actual Results:
In step 5, the current tab stays focused.
Expected Results:
The tab opened in step 2 should get focused again.
Successfully reproduced on FF3.6 and FF4.0. Works as expected in Google Chrome.
| Reporter | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
If it's a regression it's kinda old. I can even see this misbehavior in Shiretoko (Firefox 3.5). Not sure if there is already a bug for it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
Whiteboard: [dupeme?]
Version: unspecified → 3.5 Branch
Comment 3•15 years ago
|
||
Happens even back in 1.8.1 (Firefox 2.0 Branch).
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•