2 header("Cache-control: no-cache, no-store");
3 header("Pragma: no-cache");
8 <p>Test for <a href="rdar://problem/6791439">rdar://problem/6791439</a>
9 Getting an error page instead of login page navigating back in gmail.</p>
10 <div id="result">FAIL: Script did not run</div>
12 <form action="back-to-post.php?1" method="post">
13 <input name="a" value="b">
14 <input id="mysubmit" type="submit" name="Submit" value="Submit">
20 // Submit form in a timeout to make sure that we create a new back/forward list item.
21 setTimeout(function() {document.forms[0].submit()}, 0);
24 if (window.layoutTestController) {
25 layoutTestController.dumpAsText();
26 layoutTestController.waitUntilDone();
29 // Disable b/f cache (not necessary in DRT since the b/f cache is disabled by default).
30 if (!window.layoutTestController)
31 window.onunload = function() {}
33 if (document.location.search == "") {
34 window.name = ""; // Use window.name to communicate between steps.
36 } else if (document.location.search == "?1") {
37 if (window.name == "finish") {
39 document.getElementById("result").innerHTML = 'PASS';
40 if (window.layoutTestController)
41 layoutTestController.notifyDone();
43 document.forms[0].action = "?2";
47 // Test that going back to form submission result works.
48 window.name = "finish";