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

Powered by Google App Engine
This is Rietveld 408576698