| 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>
|
|
|