Open Bug 285484 Opened 20 years ago Updated 2 years ago

Cannot give focus to plugins programmatically.

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

People

(Reporter: seanp, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

In the URL specified above, typing focus is only allowed once you manually 
click on the flash movie.  I need it to have focus when the page first loads.  
I can do this in IE by using 

<body onLoad="document.getElementById('FLASHID').focus();">

but this does not work for Mozilla Firefox (or netscape, or safari, etc).  
Firefox's JavaScript console says "Error: document.getElementById
("FLASHID").focus is not a function.

Reproducible: Always

Steps to Reproduce:
1. go to above URL.
2. try typing without clicking anything.
3. 

Actual Results:  
The flash movie does not have the focus, and the key presses do not get sent 
to the flash movie.

Expected Results:  
Sent the focus to the flash movie, and allowed typing to be 'heard' by the 
flash movie.  If successful, the characters typed will show up.
Status: UNCONFIRMED → NEW
Component: General → Layout
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
Hardware: PC → All
Version: unspecified → Trunk
Assignee: firefox → nobody
QA Contact: general → layout
Summary: When html page first loads, flash movies do not have focus (typing), and cannot be assigned focus programmatically. → Cannot give focus to plugins programmatically.
In the W3C DOM, the following HTML elements have a focus() method: <input>,
<select>, <textarea>, <a>.  So <embed> and <object> cannot be focused
programmaticaly.  See also bug 277666, and I'm pretty sure we have older bugs on
this...

In any case, not a layout issue.
Assignee: nobody → general
Blocks: 277666
Component: Layout → DOM: HTML
QA Contact: layout → ian
Whiteboard: DUPEME
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
Assignee: general → nobody
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.