bug536567_subframe.html (350B)
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <input id="target" type="file" /> 5 <script type="text/javascript"> 6 7 window.onload = function() { 8 // Activate the page to allow opening the file picker. 9 SpecialPowers.wrap(document).notifyUserGestureActivation(); 10 11 var fileInput = document.getElementById("target"); 12 fileInput.click(); 13 }; 14 15 </script> 16 </body> 17 </html>