gecko/toolkit/components/places/tests/mochitest/bug94514-postpage.html
Andres Hernandez 25b05a23c8 Bug 739217 - Part 2: docshell replacement of synchronous isVisited with asynchronous isURIVisited. r=mak
--HG--
rename : docshell/test/bug94514-postpage.html => toolkit/components/places/tests/mochitest/bug94514-postpage.html
rename : docshell/test/test_bug94514.html => toolkit/components/places/tests/mochitest/test_bug_94514.html
2013-02-01 10:36:28 -06:00

30 lines
763 B
HTML

<!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/toolkit/components/places/tests/bug94514-postpage.html";
}
</script>
</body>
</html>