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

Unified Diff: LayoutTests/http/tests/navigation/resources/navigate-during-commit-iframe.html

Issue 1164883002: Ignore attempts to navigate once a provisional commit has gotten too far along. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « LayoutTests/http/tests/navigation/navigate-during-commit.html ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/navigation/resources/navigate-during-commit-iframe.html
diff --git a/LayoutTests/http/tests/navigation/resources/navigate-during-commit-iframe.html b/LayoutTests/http/tests/navigation/resources/navigate-during-commit-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..32f2f28ff8d7c12ebd98397af99e285d72e99c6e
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/resources/navigate-during-commit-iframe.html
@@ -0,0 +1,24 @@
+<html>
+<head>
+<script>
+
+// Attempts a hash navigation while "about:blank" is being committed
+// to the frame. The hash navigation should be ignored.
+function doIt() {
+ var VERY_SLOW_URL = "../xmlhttprequest/resources/endless.php?"
+ + window.randomNumber;
+ var xhr = new XMLHttpRequest();
+ xhr.open("GET", VERY_SLOW_URL, true);
+ xhr.onabort = function() {
+ window.location.hash = "hashnav";
+ };
+ xhr.send();
+ window.location = "about:blank";
+}
+
+</script>
+</head>
+<body onload="doIt()">
+Thinking...
+</body>
+</html>
« no previous file with comments | « LayoutTests/http/tests/navigation/navigate-during-commit.html ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698