summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_466937_sample.html
blob: 1d46c649a2d2974d83d0697382f37496cb48f4af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!-- Testcase originally by <moz_bug_r_a4@yahoo.com> -->

<!DOCTYPE html>
<meta charset="utf-8">
<title>Test for bug 466937</title>

<input id="thief" value="/home/user/secret">
<input type="file" id="reverse_thief">
<input type="file" id="bystander">

<script>
  window.addEventListener("DOMContentLoaded", function() {
    window.removeEventListener("DOMContentLoaded", arguments.callee, false);
    if (!document.location.hash) {
      document.location.hash = "#ready";
    }
    else {
      document.getElementById("thief").type = "file";
      document.getElementById("reverse_thief").type = "text";
    }
  }, false);
</script>