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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/resources/javascript-url-crash-function-iframe.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/resources/javascript-url-crash-function-iframe.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/resources/javascript-url-crash-function-iframe.html b/third_party/WebKit/LayoutTests/fast/dom/resources/javascript-url-crash-function-iframe.html
index 1d6a49d827fa53a94e728e8dbe6db0f266bdccbd..1520e08374d8b692394896dfb73062a5ebeaf5a3 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/resources/javascript-url-crash-function-iframe.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/resources/javascript-url-crash-function-iframe.html
@@ -15,8 +15,11 @@ function test()
setTimeout(function ()
{
+ // Capture window.window into a variable, since this property returns null as soon as the
+ // context is navigated.
+ var w = window;
test();
- if (window.testRunner)
- testRunner.notifyDone();
+ if (w.testRunner)
+ w.testRunner.notifyDone();
}, 0);
</script>

Powered by Google App Engine
This is Rietveld 408576698