Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp

Issue 2458773008: [wrapper-tracing] Fix EventTarget with LazyEventListeners (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
index c4b135f9dbc4e8ec87f1900ff0eab4b7625521fe..471bb3bfd0b601e8fd18adb9e5659dba29f2c630 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
@@ -110,6 +110,7 @@ void V8AbstractEventListener::setListenerObject(
}
m_listener.set(isolate(), listener);
m_listener.setWeak(this, &wrapperCleared);
+ ScriptWrappableVisitor::writeBarrier(this, &m_listener);
}
void V8AbstractEventListener::invokeEventHandler(ScriptState* scriptState,

Powered by Google App Engine
This is Rietveld 408576698