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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 2151273003: [DevTools] Move browser logging from Console domain to Log domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internals-method
Patch Set: protocol improvements Created 4 years, 5 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/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;

Powered by Google App Engine
This is Rietveld 408576698