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) |