Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: LayoutTests/http/tests/history/back-to-post.php

Issue 22982011: Reland "Fix form resubmissions happening silently." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/history/back-to-post.php
diff --git a/LayoutTests/http/tests/history/back-to-post.php b/LayoutTests/http/tests/history/back-to-post.php
deleted file mode 100644
index cf48db718ba9b2a34873bb9ff5e781a72cbf2636..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/history/back-to-post.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-header("Cache-control: no-cache, no-store");
-header("Pragma: no-cache");
-?>
-
-<html>
-<body>
-<p>Test for <a href="rdar://problem/6791439">rdar://problem/6791439</a>
-Getting an error page instead of login page navigating back in gmail.</p>
-<div id="result">FAIL: Script did not run</div>
-
-<form action="back-to-post.php?1" method="post">
-<input name="a" value="b">
-<input id="mysubmit" type="submit" name="Submit" value="Submit">
-</form>
-<script>
-
-function submitForm()
-{
- // Submit form in a timeout to make sure that we create a new back/forward list item.
- setTimeout(function() {document.forms[0].submit()}, 0);
-}
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-// Disable b/f cache (not necessary in DRT since the b/f cache is disabled by default).
-if (!window.testRunner)
- window.onunload = function() {}
-
-if (document.location.search == "") {
- window.name = ""; // Use window.name to communicate between steps.
- submitForm();
-} else if (document.location.search == "?1") {
- if (window.name == "finish") {
- window.name = "";
- document.getElementById("result").innerHTML = 'PASS';
- if (window.testRunner)
- testRunner.notifyDone();
- } else {
- document.forms[0].action = "?2";
- submitForm();
- }
-} else {
- // Test that going back to form submission result works.
- window.name = "finish";
- history.back();
-}
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/http/tests/history/back-to-post.html ('k') | LayoutTests/http/tests/history/back-to-post-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698