Title: [201362] branches/safari-601-branch/LayoutTests/imported
- Revision
- 201362
- Author
- matthew_han...@apple.com
- Date
- 2016-05-24 16:09:54 -0700 (Tue, 24 May 2016)
Log Message
Merge missing layout test. rdar://problem/26228555
Added Paths
Diff
Added: branches/safari-601-branch/LayoutTests/imported/blink/fast/dom/HTMLBodyElement/body-inserting-iframe-crash.html (0 => 201362)
--- branches/safari-601-branch/LayoutTests/imported/blink/fast/dom/HTMLBodyElement/body-inserting-iframe-crash.html (rev 0)
+++ branches/safari-601-branch/LayoutTests/imported/blink/fast/dom/HTMLBodyElement/body-inserting-iframe-crash.html 2016-05-24 23:09:54 UTC (rev 201362)
@@ -0,0 +1,25 @@
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var iframe = null;
+
+function start() {
+ iframe = document.createElement('iframe');
+ iframe.setAttribute('marginwidth', 1);
+ document.body.appendChild(iframe);
+
+ var bodyInFrame = document.createElement('body');
+ bodyInFrame.addEventListener('DOMSubtreeModified', removeIframe);
+ iframe.contentDocument.documentElement.appendChild(bodyInFrame);
+ document.body.innerHTML = 'PASS if not crashed.';
+}
+
+function removeIframe() {
+ iframe.parentNode.removeChild(iframe);
+ iframe = null;
+ gc();
+}
+</script>
+<body _onload_="start()">
+</body>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes