summaryrefslogtreecommitdiffstats
path: root/dom/html/test/file_iframe_sandbox_c_if3.html
blob: aca5d335699760b8cbdc4dec904deb105c73b7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test for Bug 341604</title>
  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>

</head>
<script type="text/javascript">
  function doStuff() {
    dump("*** c_if3 has loaded\n");
    // try and submit the form - this should succeed
    document.getElementById('a_form').submit();
  }
</script>
<body onLoad="doStuff()">
  I am sandboxed but with "allow-scripts allow-forms"

  <form method="get" action="file_iframe_sandbox_form_pass.html" id="a_form">
    First name: <input type="text" name="firstname">
    Last name: <input type="text" name="lastname">
    <input type="submit" onclick="doSubmit()" id="a_button">
  </form>
</body>
</html>