docshell/test/bug94514-postpage.html
author Ehsan Akhgari <ehsan@mozilla.com>
Fri, 02 Sep 2011 09:05:37 -0400
changeset 77479 fd3535f606a9bae58bd75e8eebdf51071a7e91c0
parent 75086 95496a360748609134a5c666d57c7f48aa23393e
child 130476 4e7c92906a795f721806e19aa86566bfd2c89018
permissions -rw-r--r--
Keep changeset 11247af82311 backed out on the reverted tree

<!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>
</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 = document.getElementById("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>