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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/loading/stop-load-at-commit.html

Issue 1714063002: Protect the provisional loader from detaching during prepareForCommit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a layout test, fixed bugs with initial fix Created 4 years, 10 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: third_party/WebKit/LayoutTests/http/tests/loading/stop-load-at-commit.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/stop-load-at-commit.html b/third_party/WebKit/LayoutTests/http/tests/loading/stop-load-at-commit.html
new file mode 100644
index 0000000000000000000000000000000000000000..bf9005d65bdec894694e02566816098e9ef3273e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/stop-load-at-commit.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function abortFunc() {
+ window.stop();
+}
+
+function onload() {
+ var oReq = new XMLHttpRequest();
+ oReq.addEventListener("abort", abortFunc);
+ oReq.open("GET", "/resources/slow-script.pl");
+ oReq.send();
+ window.location = "/navigation/resources/pass-and-notify-done.html";
+}
+</script>
+<body onload="onload();">
+<div>Test should not end on this page</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698