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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.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/resources/dom-access-from-closure-window-child.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
index 36910954824b76c7172bd33e4d6cc7fa077b7ede..4b2ea00d956d277c3e5dbeada3f5fbe90bcaa0b0 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
@@ -1,4 +1,8 @@
<script>
+ // Capture window.window and window.opener: once this context is navigated, these properties
+ // always return null.
+ var w = window;
+ var o = opener;
opener.accessFrame = function()
{
function normalizeURL(url)
@@ -7,12 +11,12 @@
}
try {
- opener.log("document.URL: " + normalizeURL(document.URL));
- opener.log("window.document.URL: " + normalizeURL(window.document.URL));
- opener.log("name: " + name);
- opener.log("window.name: " + window.name);
+ o.log("document.URL: " + normalizeURL(document.URL));
+ o.log("window.document.URL: " + normalizeURL(w.document.URL));
+ o.log("name: " + name);
+ o.log("window.name: " + w.name);
} catch (e) {
- opener.log("An exception was thrown: " + e.message);
+ o.log("An exception was thrown: " + e.message);
}
}

Powered by Google App Engine
This is Rietveld 408576698