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

Unified Diff: LayoutTests/http/tests/history/cross-origin-redirect-on-back.html

Issue 1175113009: Don't use FrameLoader::m_provisionalItem for history state if a cross-origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Give receivedMainResourceRedirect the right url Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/history/cross-origin-redirect-on-back-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/history/cross-origin-redirect-on-back.html
diff --git a/LayoutTests/http/tests/history/cross-origin-redirect-on-back.html b/LayoutTests/http/tests/history/cross-origin-redirect-on-back.html
new file mode 100644
index 0000000000000000000000000000000000000000..30da4e4bbb57ddb05f3792a10573eb9fc70cf833
--- /dev/null
+++ b/LayoutTests/http/tests/history/cross-origin-redirect-on-back.html
@@ -0,0 +1,25 @@
+<html>
+<body>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+window.onload = function() {
+ if (location.hash == "#back") {
+ document.body.appendChild(document.createTextNode("We pass if we don't crash."));
+ if (window.testRunner)
+ testRunner.notifyDone();
+ return;
+ }
+
+ setTimeout(function() {
+ history.replaceState({}, "", "#back");
+ history.pushState({}, "", "http://127.0.0.1:8000/resources/redirect.php?url=http://localhost:8000/history/resources/back.html");
+ location = "http://127.0.0.1:8000/history/resources/back.html";
+ }, 0);
+};
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/history/cross-origin-redirect-on-back-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698