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

Unified Diff: LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html

Issue 309063005: Don't attempt to print an error message if there is no console. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove a different check Created 6 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/loading/navigate-detached-frame-window-does-not-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html
diff --git a/LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html b/LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9d57edf9f7a2f76eab3e01668f1c3d9a6fa1465
--- /dev/null
+++ b/LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash.html
@@ -0,0 +1,18 @@
+<head>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+}
+
+function runTest() {
+ var frame = document.getElementById('frame');
+ var frameWindow = frame.contentWindow;
+ window.document.body.removeChild(frame);
+ frameWindow.location = "about:blank";
+}
+</script>
+
+<body onload='runTest()'>
+<iframe id="frame" src="data:text/html,"></iframe>
+This test passes if it doesn't crash.
+</body>
« no previous file with comments | « no previous file | LayoutTests/http/tests/loading/navigate-detached-frame-window-does-not-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698