CLOSED TREE: TraceMonkey merge head. (a=blockers)
[mozilla-central.git] / docshell / test / bug94514-postpage.html
blob9e99c0ea4fd8263965f11048d70c78e0d5c12d7b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=94514
5 Specifically, this is a test page that actually submits a form.
6 -->
7 <head>
8 <title>Test Page for Bug 94515</title>
9 <script type="text/javascript" src="/MochiKit/packed.js"></script>
10 </head>
11 <body>
12 <form id="testForm" method="POST">
13 <input type="submit" id="send"/>
14 </form>
16 <script class="testbody" type="text/javascript">
18 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
19 if (!window.location.href.match("posted=1")) {
20 // Here we just submit the form
21 var form = $("testForm");
22 form.action = window.location.href + "?posted=1";
23 form.submit();
24 } else {
25 window.location.href = "http://mochi.test:8888/tests/docshell/test/bug94514-postpage.html";
28 </script>
29 </body>
30 </html>