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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp

Issue 2318853002: [DevTools] Handle navigation in console.log (Closed)
Patch Set: Created 4 years, 3 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/platform/v8_inspector/V8RuntimeAgentImpl.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
index 5c8c7845a3d430fe754cf6a1a03e53124ced17bf..6c277cac0f6d41298f22d16fd73a437a19589ab5 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
@@ -617,8 +617,11 @@ void V8RuntimeAgentImpl::enable(ErrorString* errorString)
m_inspector->enableStackCapturingIfNeeded();
m_session->reportAllContexts(this);
V8ConsoleMessageStorage* storage = m_inspector->ensureConsoleMessageStorage(m_session->contextGroupId());
- for (const auto& message : storage->messages())
+ for (const auto& message : storage->messages()) {
reportMessage(message.get(), false);
dgozman 2016/09/07 00:21:03 if (!reportMessage(...)) return;
kozy 2016/09/07 00:50:16 Done.
+ if (!m_inspector->hasConsoleMessageStorage(m_session->contextGroupId()))
+ return;
+ }
}
void V8RuntimeAgentImpl::disable(ErrorString* errorString)

Powered by Google App Engine
This is Rietveld 408576698