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

Unified Diff: LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.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/frames/out-of-document-iframe-has-child-frame.html
diff --git a/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html b/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html
index 9a033edaef924292043a04b361b927bf72e012db..7c9c7ed60b473c21abb3d617788147d034426b45 100644
--- a/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html
+++ b/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html
@@ -9,6 +9,7 @@ description("This tests that several ways of making an iframe that isn't inserte
+ " but has a child frame will fail.");
main = document.getElementById("main");
+window.jsTestIsAsync = true;
try {
container = main.appendChild(document.createElement("div"));
@@ -44,9 +45,13 @@ try {
helperFrame.src = "javascript:top.container.removeChild(top.targetFrame3)";
document.body.appendChild(container);
} catch (e) { }
-shouldBeTrue("targetFrame3.contentWindow == undefined");
-isSuccessfullyParsed();
+setTimeout(function() {
+ shouldBeTrue("targetFrame3.contentWindow == undefined");
+ finishJSTest();
+}, 0);
+
+
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698