Currently document.activeElement may return the input element inside type="file". Content JS gets then an exception when it tries to access the element.
Comment on attachment 620830 [details] [diff] [review] patch https://tbpl.mozilla.org/?tree=Try&rev=52113d2992a5
Attachment #620830 - Flags: review? → review?(enndeakin)
Attachment #620830 - Flags: review?(enndeakin) → review+
Bah, the patch revealed another bug.
Neil, the patch doesn't change the focusing behavior, but it is just that test_bug430351.html tests currently the_native_anon_button_inside_file_input != <input type="file"> With the patch that becomes <input type="file"> != <input type="file">
Attachment #621005 - Flags: review?(enndeakin) → review+
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.