docshell/test/bug94514-postpage.html
author vladimir@pobox.com
Sun, 06 Apr 2008 16:34:08 -0700
changeset 13975 49b9478da86cd575d29994d4fb7aed7c6d9ba69d
parent 11255 b697005df2bee746c9279334bbdfdf78b5d93089
child 28048 8f7b73d88f6bbedec99c6c8ef48b243ab922d05c
permissions -rw-r--r--
backout [mq]: cairo-rollback.patch

<!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/MochiKit.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.opener.finishTest();
}

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