| 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 9acda710530f48c82a190e91d02430a41fcd750f..9d29aea1ae60ea5a042451d4f93b563b2dfde5d5 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
|
| @@ -106,6 +106,8 @@ v8::Local<v8::Value> V8EventListener::callListenerFunction(
|
| !frame->script().canExecuteScripts(AboutToExecuteScript))
|
| return v8::Local<v8::Value>();
|
|
|
| + ScriptStateForErrorEvent::Scope scope(scriptState,
|
| + handlerFunction->CreationContext());
|
| v8::Local<v8::Value> parameters[1] = {jsEvent};
|
| v8::Local<v8::Value> result;
|
| if (!V8ScriptRunner::callFunction(handlerFunction, frame->document(),
|
|
|