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

Unified Diff: Source/core/inspector/InspectorConsoleAgent.cpp

Issue 1095943002: DevTools: [console] Logged promise rejections do not change state once handled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: for landing Created 5 years, 8 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
« no previous file with comments | « Source/core/inspector/ConsoleMessage.cpp ('k') | Source/devtools/front_end/Images/src/optimize_png.hashes » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/core/inspector/ConsoleMessage.cpp ('k') | Source/devtools/front_end/Images/src/optimize_png.hashes » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698