docshell/test/bug94514-postpage.html
author Aki Sasaki <asasaki@mozilla.com>
Wed, 29 Sep 2010 11:04:07 -0700
branchGECKO20b7pre_20100929_RELBRANCH
changeset 54773 793167afe8b48ca926a1038e7f3dceacaa505e4a
parent 51304 26e0dc7f707ff3e7389d35c2a60d0d8bdc44ca1b
child 75085 f1c41350c548e5f64d206e7559a28d251ddaefff
permissions -rw-r--r--
Branching for Fennec 4.0a1. (backing out previous whitespace change). a=release/npotb

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=94514
Specifically, this is a test page that actually submits a form.
-->
<head>
  <title>Test Page for Bug 94515</title>
  <script type="text/javascript" src="/MochiKit/packed.js"></script>
</head>
<body>
<form id="testForm" method="POST">
  <input type="submit" id="send"/>
</form>

<script class="testbody" type="text/javascript">

netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
if (!window.location.href.match("posted=1")) {
  // Here we just submit the form
  var form = $("testForm");
  form.action = window.location.href + "?posted=1";
  form.submit();
} else {
  window.location.href = "http://mochi.test:8888/tests/docshell/test/bug94514-postpage.html";
}

</script>
</body>
</html>