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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach.html

Issue 2006033002: Disable frame navigations during DocumentLoader detach in FrameLoader::startLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: -Wild idea, +test Created 4 years, 7 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 | third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach.html b/third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach.html
new file mode 100644
index 0000000000000000000000000000000000000000..e5f7c75cce009a40af613662ad34d645323b5c69
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach.html
@@ -0,0 +1,27 @@
+<body>
+We pass if we don't crash.
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var child = document.body.appendChild(document.createElement('iframe'));
+child.contentDocument.open();
+var grandchild = child.contentDocument.appendChild(document.createElement('iframe'));
+
+child.contentWindow.onload = function() {
Nate Chapin 2016/05/25 23:03:08 This test fails without the FrameLoader.cpp change
+ var a = grandchild.contentDocument.createElement('a');
+ a.href = 'data:text/xml,';
+ a.click();
+}
+
+var a = grandchild.contentDocument.createElement('a');
+a.href = 'data:text/xml,';
+a.click();
+
+child.contentDocument.close();
+
+a = grandchild.contentDocument.createElement('a');
+a.href = 'data:text/html,';
+a.click();
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/navigation/start-load-during-provisional-loader-detach-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698