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

Unified Diff: LayoutTests/fast/dom/document-navigation-error-no-crash.html

Issue 413683002: LocalWindow::printErrorMessage(): check if frame is available. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/fast/dom/document-navigation-error-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/document-navigation-error-no-crash.html
diff --git a/LayoutTests/fast/dom/document-navigation-error-no-crash.html b/LayoutTests/fast/dom/document-navigation-error-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..47fae2474da01f40a7bed90a64a2c67c3f591161
--- /dev/null
+++ b/LayoutTests/fast/dom/document-navigation-error-no-crash.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<body onload=runTest()>
+<iframe src="data:text/html,"></iframe>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function runTest() {
+ var a = window.frames[0];
+ document.removeChild(document.head.parentNode);
+ a.location = "data:text/plain,pass";
+ console.log("PASS (No crash.)");
+}
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-navigation-error-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698