Index: Source/core/inspector/InspectorConsoleAgent.cpp |
diff --git a/Source/core/inspector/InspectorConsoleAgent.cpp b/Source/core/inspector/InspectorConsoleAgent.cpp |
index b8e9f09c994c129242686cd9972b14d9dec9c440..2b31d68f99d490207dfab4c3bd291777890a5764 100644 |
--- a/Source/core/inspector/InspectorConsoleAgent.cpp |
+++ b/Source/core/inspector/InspectorConsoleAgent.cpp |
@@ -162,6 +162,7 @@ static TypeBuilder::Console::ConsoleMessage::Level::Enum messageLevelValue(Messa |
case WarningMessageLevel: return TypeBuilder::Console::ConsoleMessage::Level::Warning; |
case ErrorMessageLevel: return TypeBuilder::Console::ConsoleMessage::Level::Error; |
case InfoMessageLevel: return TypeBuilder::Console::ConsoleMessage::Level::Info; |
+ case RevokedErrorMessageLevel: return TypeBuilder::Console::ConsoleMessage::Level::RevokedError; |
} |
return TypeBuilder::Console::ConsoleMessage::Level::Log; |
} |
@@ -221,6 +222,10 @@ void InspectorConsoleAgent::sendConsoleMessageToFrontend(ConsoleMessage* console |
if (asyncCallStack) |
jsonObj->setAsyncStackTrace(asyncCallStack->buildInspectorObject()); |
} |
+ if (consoleMessage->messageId()) |
+ jsonObj->setMessageId(consoleMessage->messageId()); |
+ if (consoleMessage->relatedMessageId()) |
+ jsonObj->setRelatedMessageId(consoleMessage->relatedMessageId()); |
frontend()->messageAdded(jsonObj); |
frontend()->flush(); |
} |