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

Unified Diff: LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html

Issue 948793003: Fix inconsistent frame detach behavior of ContainerNode::parserRemoveChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline Created 5 years, 10 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/reparented-iframe-cleared-contentWindow.html
diff --git a/LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html b/LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html
new file mode 100644
index 0000000000000000000000000000000000000000..ba222dfcde5a6dbdda307a9ab275e5e52de0ea46
--- /dev/null
+++ b/LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html
@@ -0,0 +1,17 @@
+<script src='../../resources/js-test.js'></script>
+<body>
+<b><p>
+<iframe></iframe>
+<script>document.body.offsetTop; /* force iframe to attach synchronously */</script>
+<!--
+Force reparenting by closing <b> first. This makes the following tree:
++b
++p
+ +b
+ +iframe
+ +script
+-->
+</b></p>
+<script>
+debug('PASS if test does not crash in DEBUG builds.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698