browser/components/sessionstore/test/browser_466937_sample.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/components/sessionstore/test/browser_466937_sample.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!-- Testcase originally by <moz_bug_r_a4@yahoo.com> -->
     1.5 +
     1.6 +<!DOCTYPE html>
     1.7 +<meta charset="utf-8">
     1.8 +<title>Test for bug 466937</title>
     1.9 +
    1.10 +<input id="thief" value="/home/user/secret">
    1.11 +<input type="file" id="reverse_thief">
    1.12 +<input type="file" id="bystander">
    1.13 +
    1.14 +<script>
    1.15 +  window.addEventListener("DOMContentLoaded", function() {
    1.16 +    window.removeEventListener("DOMContentLoaded", arguments.callee, false);
    1.17 +    if (!document.location.hash) {
    1.18 +      document.location.hash = "#ready";
    1.19 +    }
    1.20 +    else {
    1.21 +      document.getElementById("thief").type = "file";
    1.22 +      document.getElementById("reverse_thief").type = "text";
    1.23 +    }
    1.24 +  }, false);
    1.25 +</script>

mercurial