| Index: third_party/WebKit/LayoutTests/http/tests/security/resources/xss-eval2.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/xss-eval2.html b/third_party/WebKit/LayoutTests/http/tests/security/resources/xss-eval2.html
|
| index 462cd58d82be9321ac8e31f786aa4c62c938ac7f..33253cb3c03cc34eea1d2ee5b06f378fe93162a8 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/resources/xss-eval2.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/xss-eval2.html
|
| @@ -3,9 +3,15 @@ document.testExpando = "It's me too!";
|
|
|
| parent.childEval = eval;
|
|
|
| -parent.childEvalCaller = function(s) {
|
| - return window.eval(s);
|
| -}
|
| +parent.childEvalCaller = (function()
|
| +{
|
| + // Capture window.window into a variable, since this property always returns null once
|
| + // the context is navigated.
|
| + var w = window;
|
| + return function(s) {
|
| + return w.eval(s);
|
| + }
|
| +})();
|
|
|
| parent.childLocalEvalCaller = (function()
|
| {
|
|
|