User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/2008070208 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/2008070208 Firefox/3.0.1 Calling the focus method of the file element should set focus to the element's browse button. Reproducible: Always Steps to Reproduce: 1. Add an <input id=f1 type=file> element to the body 2. Call document.getElementById("f1").focus() in script Actual Results: Focus is set to the document body. Expected Results: Focus should be set to the element's Browse button.
This isn't the same as bug 345195. That bug detailed the problem of not being able to tab to a file element. Bug 345195 has been fixed. The problem outlined in this bug still remains.
I don't know how serious a regression it is, or when it broke, but it could affect some sites. fileInput.focus() should focus the browse button.
This bug should have been fixed by 178324.