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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/property-access-in-closure-after-navigation.html

Issue 1374533002: Null out LocalDOMWindow::m_frame on navigation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try to fix crash-on-querying-event-path.html Created 5 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: third_party/WebKit/LayoutTests/fast/dom/Window/property-access-in-closure-after-navigation.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-in-closure-after-navigation.html b/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-in-closure-after-navigation.html
new file mode 100644
index 0000000000000000000000000000000000000000..8482fb695c89613340c0f0d54e87ed3ad63ffe96
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/property-access-in-closure-after-navigation.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script>
+var jsTestIsAsync = true;
+description('Test that an inner global captured in a closure acts as if its creating context is detached when the creating context is navigated.');
+
+var loadCount = 0;
+function maybeFinishTest()
+{
+ if (++loadCount < 2)
+ return;
+
+ savedClosure();
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+</script>
+</head>
+<body>
+<iframe src="resources/property-access-in-closure-after-navigation-child.html" onload="maybeFinishTest()"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698