toolkit/components/places/tests/bug94514-postpage.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 </head>
    10 <body>
    11 <form id="testForm" method="POST">
    12   <input type="submit" id="send"/>
    13 </form>
    15 <script class="testbody" type="text/javascript">
    17 if (!window.location.href.match("posted=1")) {
    18   // Here we just submit the form
    19   var form = document.getElementById("testForm");
    20   form.action = window.location.href + "?posted=1";
    21   form.submit();
    22 } else {
    23   window.location.href = "http://mochi.test:8888/tests/toolkit/components/places/tests/bug94514-postpage.html";
    24 }
    26 </script>
    27 </body>
    28 </html>

mercurial