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

Unified Diff: LayoutTests/fast/dom/insertedIntoDocument-iframe.html

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/dom/insertedIntoDocument-iframe.html
diff --git a/LayoutTests/fast/dom/insertedIntoDocument-iframe.html b/LayoutTests/fast/dom/insertedIntoDocument-iframe.html
index e22922fd4343a5e3d6c61c827c421f3fbafa15f3..5315b54e78b8a00ed2112828d8d71c91ad9af54a 100644
--- a/LayoutTests/fast/dom/insertedIntoDocument-iframe.html
+++ b/LayoutTests/fast/dom/insertedIntoDocument-iframe.html
@@ -22,9 +22,12 @@ window.onload = function()
iframe = parent.firstChild;
iframe.src = "javascript:top.document.body.removeChild(top.parent)";
-
- document.body.appendChild(parent);
+ setTimeout(testAndFinish, 0);
+}
+testAndFinish = function()
+{
+ document.body.appendChild(parent);
parent = iframe = null;
gc();

Powered by Google App Engine
This is Rietveld 408576698