Closed Bug 371078 Opened 17 years ago Closed 17 years ago

Alt-Tab with opened drop-down loses focus but leaves CSS :focus applied

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 327102
Future

People

(Reporter: timwi, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

See STR.


Reproducible: Always

Steps to Reproduce:
1. Open attached testcase.
2. Press Tab until the drop-down box is selected. It turns blue with a red border due to the :focus CSS rule.
3. Press Alt-Down. Drop-down opens.
4. Press Alt-Tab to switch to another application. Then switch back.

Actual Results:  
Content area now has focus, but the :focus CSS for the select is still applied.

(On a website with several form elements, all of which have :focus rules, it is now possible to have it appear as if two form elements have focus simultaneously.)

Expected Results:  
Ideally, drop-down should still have focus, but if not, then the :focus CSS rule should not be applied anymore.
Attached file Testcase
Reproduced on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Component: General → Event Handling
Product: Firefox → Core
Resolution: --- → DUPLICATE
Target Milestone: --- → Future
Version: unspecified → Trunk
This is not a perfect duplicate of bug 327102 -- the latter doesn't cover the fact that pressing Alt-Tab moves keyboard focus from the dropped-down drop-down box to the content area. Should I report that separately, or is that covered elsewhere?
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: