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-repeated-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: 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
Index: LayoutTests/fast/frames/detach-frame-repeated-no-crash.html
diff --git a/LayoutTests/fast/frames/detach-frame-repeated-no-crash.html b/LayoutTests/fast/frames/detach-frame-repeated-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..bb7eb37e20e91ff3b49fcfe1331c2e735cf85078
--- /dev/null
+++ b/LayoutTests/fast/frames/detach-frame-repeated-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 repeated frame detaches 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-repeated-no-crash-expected.txt » ('j') | Source/core/loader/FrameLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698