Index: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
index 59b8cdec328419c500c2e7d88e36529eaf07657f..9b5c11a7e05357045413fc61453be8f44f851a35 100644 |
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp |
@@ -309,12 +309,15 @@ void ThreadDebugger::getEventListenersCallback(const v8::FunctionCallbackInfo<v8 |
ThreadDebugger* debugger = static_cast<ThreadDebugger*>(v8::Local<v8::External>::Cast(info.Data())->Value()); |
DCHECK(debugger); |
v8::Isolate* isolate = info.GetIsolate(); |
+ int groupId = debugger->contextGroupId(toExecutionContext(isolate->GetCurrentContext())); |
V8EventListenerInfoList listenerInfo; |
// eventListeners call can produce message on ErrorEvent during lazy event listener compilation. |
- debugger->muteWarningsAndDeprecations(); |
+ if (groupId) |
+ debugger->muteWarningsAndDeprecations(groupId); |
InspectorDOMDebuggerAgent::eventListenersInfoForTarget(isolate, info[0], listenerInfo); |
- debugger->unmuteWarningsAndDeprecations(); |
+ if (groupId) |
+ debugger->unmuteWarningsAndDeprecations(groupId); |
v8::Local<v8::Object> result = v8::Object::New(isolate); |
AtomicString currentEventType; |