Chromium Code Reviews| 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..d268e8d70e5c923c3f47473de4cd14bba0975ccb 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp |
| @@ -106,6 +106,7 @@ v8::Local<v8::Value> V8EventListener::callListenerFunction( |
| !frame->script().canExecuteScripts(AboutToExecuteScript)) |
| return v8::Local<v8::Value>(); |
| + ScriptStateForErrorEvent scope(handlerFunction->CreationContext()); |
|
haraken
2016/11/02 01:40:18
Add a comment about what this is doing.
By the wa
|
| v8::Local<v8::Value> parameters[1] = {jsEvent}; |
| v8::Local<v8::Value> result; |
| if (!V8ScriptRunner::callFunction(handlerFunction, frame->document(), |