browser_466937_sample.html (562B)
1 <!-- Testcase originally by <moz_bug_r_a4@yahoo.com> --> 2 3 <!DOCTYPE html> 4 <meta charset="utf-8"> 5 <title>Test for bug 466937</title> 6 7 <input id="thief" value="/home/user/secret"> 8 <input type="file" id="reverse_thief"> 9 <input type="file" id="bystander"> 10 11 <script> 12 window.addEventListener("DOMContentLoaded", function() { 13 if (!document.location.hash) { 14 document.location.hash = "#ready"; 15 } else { 16 document.getElementById("thief").type = "file"; 17 document.getElementById("reverse_thief").type = "text"; 18 } 19 }, {once: true}); 20 </script>