| Index: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| index 8be789dc692ae9edd4f1e2e1c3aa946135f1286e..cc137a1c9ed83f4888fd128e72e0c7449bd6b957 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| @@ -80,11 +80,6 @@ public:
|
| // even if the user script is not compilable.
|
| v8::Local<v8::Object> getListenerObject(ExecutionContext* executionContext)
|
| {
|
| - // prepareListenerObject can potentially deref this event listener
|
| - // as it may attempt to compile a function (lazy event listener), get an error
|
| - // and invoke onerror callback which can execute arbitrary JS code.
|
| - // Protect this event listener to keep it alive.
|
| - RawPtr<V8AbstractEventListener> protect(this);
|
| prepareListenerObject(executionContext);
|
| return m_listener.newLocal(m_isolate);
|
| }
|
|
|