| Index: third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
|
| index 95c22fbd43786fd59cac35f84624bf02dec0ad96..017860884af8edf851e764f06149694d09abcff1 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
|
| @@ -86,7 +86,8 @@ v8::Local<v8::Value> V8EventListener::callListenerFunction(ScriptState* scriptSt
|
| if (!frame)
|
| return v8::Local<v8::Value>();
|
|
|
| - if (!frame->script().canExecuteScripts(AboutToExecuteScript))
|
| + // TODO(jochen): Consider moving this check into canExecuteScripts. http://crbug.com/608641
|
| + if (scriptState->world().isMainWorld() && !frame->script().canExecuteScripts(AboutToExecuteScript))
|
| return v8::Local<v8::Value>();
|
|
|
| v8::Local<v8::Value> parameters[1] = { jsEvent };
|
|
|