Closed
Bug 307933
Opened 19 years ago
Closed 15 years ago
JavaScript focus changes in background tabs are ignored instead of confined
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mtanalin, Unassigned)
References
(Blocks 1 open bug, )
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
On selecting page loaded in background, the INPUT element on that page will not
get focus though it must according to JavaScript code:
document.getElementById('testInput').focus();
Example of the page with similar functionality (where this bug also appears) is
http://ya.ru/.
Reproducible: Always
Steps to Reproduce:
1. Open the page that contains the link to another page that in turn contains
INPUT element and also JavaScript code to focus this INPUT element.
2. Open link to that another page in a new tab IN BACKGROUND (CTRL+CLICK).
3. Don't select (keep current tab active) opened tab before it will be loaded
entirely.
4. Select loaded page (click on tab) after it is loaded.
Actual Results:
On selecting page (tab) loaded in background, the INPUT element on that page
will not get focus though it must do it according to JavaScript code:
document.getElementById('testInput').focus();
Expected Results:
The INPUT element must get focus independently the page is loaded in active tab
or not active tab (in other words, in background). (Of course in case of the
page contains appropriate JavaScript code.)
This problem takes place in all versions from Firefox 1.06 (and maybe early) to
Firefox 1.5 Beta 1.
Comment 1•19 years ago
|
||
indeed, focus is on <body>, not in the Element
(failed to find a dupe)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•19 years ago
|
Summary: On selecting page loaded in background, the INPUT element on that page will not get focus though it must do it according to JavaScript code → JavaScript focus changes in background tabs are ignored instead of confined
Updated•19 years ago
|
Assignee: nobody → general
Component: General → DOM
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
Updated•19 years ago
|
OS: Windows XP → All
Hardware: PC → All
Updated•19 years ago
|
Flags: blocking1.9a1?
Whiteboard: DUPEME
Comment 2•19 years ago
|
||
This also happens if you have multiple tabs set for your homepage. Only the first tab acknowledes the body onload focus() call.
This is still happenening in 1.5.x and bonecho. I have also noticed this on earlier versions (Linux / Windows, haven't tested other OSs).
Comment 3•18 years ago
|
||
See also bug 296471.
Flags: blocking1.9a1? → blocking1.9-
Whiteboard: DUPEME → DUPEME[wanted-1.9]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
i confirm this bug. script focusing in inactive tabs is ignored.
i guess the reason is NOT that firefox would have only one focus for all the tabs instead of one focus per tab, because manual focusing is remembered also after changing to a different tab and returning back. it seems script focus changes in inactive tabs are blocked specifically (maybe as a result of resolving https://bugzilla.mozilla.org/show_bug.cgi?id=124750#c177 ?)
Updated•18 years ago
|
Flags: blocking1.8.1.1?
Updated•18 years ago
|
Flags: blocking1.8.1.1?
Updated•17 years ago
|
Flags: wanted1.9+
Whiteboard: DUPEME[wanted-1.9] → DUPEME
Blocks: 462099
Comment 7•15 years ago
|
||
This bug should have been fixed by 178324.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•