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

UNCONFIRMED
Unassigned

Status

()

Core
Event Handling
UNCONFIRMED
7 years ago
7 years ago

People

(Reporter: koshi, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
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.
(Reporter)

Comment 1

7 years ago
Created attachment 472262 [details]
Demo html with javascript

Comment 2

7 years ago
Related to bug 472980?
Component: Keyboard Navigation → Event Handling
Keywords: testcase
Product: Firefox → Core
QA Contact: keyboard.navigation → events
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.