Index: src/inspector/V8ConsoleAgentImpl.cpp |
diff --git a/src/inspector/V8ConsoleAgentImpl.cpp b/src/inspector/V8ConsoleAgentImpl.cpp |
index 02e0b6c6e1ca29f55e2e13618a5fe23db0763823..9e35cffe6174ae3057f46ff73017b8a591e3297d 100644 |
--- a/src/inspector/V8ConsoleAgentImpl.cpp |
+++ b/src/inspector/V8ConsoleAgentImpl.cpp |
@@ -61,16 +61,19 @@ void V8ConsoleAgentImpl::reportAllMessages() { |
m_session->inspector()->ensureConsoleMessageStorage( |
m_session->contextGroupId()); |
for (const auto& message : storage->messages()) { |
- if (message->origin() == V8MessageOrigin::kConsole) |
- reportMessage(message.get(), false); |
+ if (message->origin() == V8MessageOrigin::kConsole) { |
+ if (!reportMessage(message.get(), false)) return; |
+ } |
} |
} |
-void V8ConsoleAgentImpl::reportMessage(V8ConsoleMessage* message, |
+bool V8ConsoleAgentImpl::reportMessage(V8ConsoleMessage* message, |
bool generatePreview) { |
DCHECK(message->origin() == V8MessageOrigin::kConsole); |
message->reportToFrontend(&m_frontend); |
m_frontend.flush(); |
+ return m_session->inspector()->hasConsoleMessageStorage( |
+ m_session->contextGroupId()); |
} |
} // namespace v8_inspector |