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

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

Issue 2873713002: [DevTools] added creation stack for event listeners without scheduled stack
Patch Set: better Created 3 years, 7 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 e8a8543bb382f5a40c2c4c28808cbb055c7739f9..58f714011750b829b013cd65d66c7902b4501164 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
@@ -40,6 +40,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/events/BeforeUnloadEvent.h"
#include "core/events/Event.h"
+#include "core/probe/CoreProbes.h"
#include "core/workers/WorkerGlobalScope.h"
#include "platform/InstanceCounters.h"
#include "platform/bindings/V8PrivateProperty.h"
@@ -218,6 +219,7 @@ void V8AbstractEventListener::ClearListenerObject() {
if (!HasExistingListenerObject())
return;
listener_.Clear();
+ probe::AsyncTaskCanceled(CurrentExecutionContext(isolate_), this);
if (worker_global_scope_) {
worker_global_scope_->DeregisterEventListener(this);
} else {

Powered by Google App Engine
This is Rietveld 408576698