| Index: third_party/WebKit/Source/core/events/EventTarget.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| index 373a20500bf6cf4070b6e7766a584f735fbbbeaa..21ee9c24b355530483f32b3a0e7c5fa8b4407f75 100644
|
| --- a/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| +++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| @@ -95,6 +95,10 @@ void reportBlockedEvent(ExecutionContext* context, const Event* event, Registere
|
|
|
| V8AbstractEventListener* v8Listener = V8AbstractEventListener::cast(registeredListener->listener());
|
| v8::HandleScope handles(v8Listener->isolate());
|
| + v8::Local<v8::Context> v8Context = toV8Context(context, v8Listener->world());
|
| + if (v8Context.IsEmpty())
|
| + return;
|
| + v8::Context::Scope contextScope(v8Context);
|
| v8::Local<v8::Object> handler = v8Listener->getListenerObject(context);
|
|
|
| String messageText = String::format(
|
|
|