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

Unified Diff: LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html

Issue 538323003: Have window.closed return true when frame is closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Un-inline and improve formatting of Frame::setHasBeenClosed() Created 6 years, 3 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/Window/property-access-on-cached-window-after-frame-removed.html
diff --git a/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html b/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
index 65e1979727577f7de251906a0a3c3177e23f308c..5433dc5452cb23446da440db51b495fe5d7d5fd9 100644
--- a/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
+++ b/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
@@ -17,7 +17,8 @@ function runTest()
description("Tests property access on a cached DOMWindow after the associated frame is no longer in a web page. Test should not crash and properties should be set to sane defaults.");
var frame = document.getElementById("frame");
childWindow = frame.contentWindow;
- collectProperties();
+ // Have expected results assume that the frame has been closed (=> window.closed = true.)
+ collectProperties(true);
frame.parentNode.removeChild(frame);
for (var i = 0; i < propertiesToVerify.length; ++i)
shouldBe(propertiesToVerify[i].property, propertiesToVerify[i].expected);

Powered by Google App Engine
This is Rietveld 408576698