Open Bug 593682 Opened 14 years ago Updated 2 years ago

Keyboard navigation does not work after hiding active iframe (display:none)

Categories

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

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: koshi, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b5) Gecko/20100101 Firefox/4.0b5

Firefox does not react on keyboard events if an active iframe (which has a focus) become hidden (style.display = 'none') with help of JavaScript.



Reproducible: Always

Steps to Reproduce:
1. Create an iframe (using JavaScript).
2. Do the iframe active (click on it).
3. Somehow fire an event with callback which will hide iframe when it is active.
Actual Results:  
iframe is hidden.
No reaction on keyboard events (F5, Tab, ctrl+Tab, alt, etc)

Expected Results:  
iframe is hidden.
Keyboard input works like usually.
Keyboard input focus should be returned to iframe's parent document (probably).

Firefox 3.6 need one click on a page to restore keyboard input.
Firefox 4.0b5 need two clicks on a page to restore keyboard input.
Related to bug 472980?
Component: Keyboard Navigation → Event Handling
Keywords: testcase
Product: Firefox → Core
QA Contact: keyboard.navigation → events
Version: unspecified → Trunk
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: