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

Unified Diff: LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html

Issue 1116763002: Gracefully handle unruly children detaching our frame and client. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/frames/detach-frame-nested-on-commit-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html
diff --git a/LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html b/LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..ac88ef0f6a1d17d792e01a914186a481329cbfb5
--- /dev/null
+++ b/LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+<script>
+description("Indirectly detaching frames on load completion should not crash.");
+
+window.jsTestIsAsync = true;
+
+function maybeStart()
+{
+ window.secondFrame.contentWindow.onunload = function() {
+ document.documentElement.removeChild(window.bodyEl);
+ setTimeout(finishJSTest, 10);
+ };
+ window.firstFrame.src = 'about:blank';
+}
+function runTest()
+{
+ window.firstFrame = document.createElement('iframe');
+ document.body.appendChild(window.firstFrame);
+ window.secondFrame = document.createElement('iframe');
+ window.secondFrame.src = 'javascript:window.top.maybeStart();';
+ window.firstFrame.contentDocument.documentElement.appendChild(window.secondFrame);
+}
+
+window.onload = runTest;
+</script>
+</head>
+<body id=bodyEl>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/frames/detach-frame-nested-on-commit-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698