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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/places/tests/bug94514-postpage.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=94514
     1.8 +Specifically, this is a test page that actually submits a form.
     1.9 +-->
    1.10 +<head>
    1.11 +  <title>Test Page for Bug 94515</title>
    1.12 +</head>
    1.13 +<body>
    1.14 +<form id="testForm" method="POST">
    1.15 +  <input type="submit" id="send"/>
    1.16 +</form>
    1.17 +
    1.18 +<script class="testbody" type="text/javascript">
    1.19 +
    1.20 +if (!window.location.href.match("posted=1")) {
    1.21 +  // Here we just submit the form
    1.22 +  var form = document.getElementById("testForm");
    1.23 +  form.action = window.location.href + "?posted=1";
    1.24 +  form.submit();
    1.25 +} else {
    1.26 +  window.location.href = "http://mochi.test:8888/tests/toolkit/components/places/tests/bug94514-postpage.html";
    1.27 +}
    1.28 +
    1.29 +</script>
    1.30 +</body>
    1.31 +</html>

mercurial