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 99562b50dbc1064632c9c4b1335e3a1f0570fef2..329f68dac5f754f349b632821aa2bf69577f238d 100644 |
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp |
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp |
@@ -413,9 +413,11 @@ EventListener* EventTarget::getAttributeEventListener( |
EventListenerVector* listenerVector = getEventListeners(eventType); |
if (!listenerVector) |
return nullptr; |
+ |
for (auto& eventListener : *listenerVector) { |
EventListener* listener = eventListener.listener(); |
- if (listener->isAttribute() && listener->belongsToTheCurrentWorld()) |
+ if (listener->isAttribute() && |
+ listener->belongsToTheCurrentWorld(getExecutionContext())) |
return listener; |
} |
return nullptr; |