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

Unified Diff: LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash.html

Issue 1290053003: Handle LocalFrame being nestedly detached by subframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 4 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-from-child-detach-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-from-child-detach-no-crash.html
diff --git a/LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash.html b/LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..98f8b3243cc00231fe5a36b1c773a6c8ded9581e
--- /dev/null
+++ b/LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<script src="../../resources/js-test.js"></script>
+<div id="a"></div>
+<div id="b"><iframe id="f"></iframe></div>
+<script>
+description("Allow nested frame detaches from subframe without crashing.");
+
+self.jsTestIsAsync = true;
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+var iframe = f.contentDocument;
+iframe.open();
+function moveDivBIntoDivA() {
+ try {
+ a.appendChild(b);
+ iframe.open();
+ } catch(e) {
+ finishJSTest();
+ }
+}
+
+iframe.addEventListener('readystatechange', moveDivBIntoDivA);
+moveDivBIntoDivA();
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/frames/detach-frame-from-child-detach-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698