Index: Source/WebCore/inspector/front-end/ConsoleMessage.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ConsoleMessage.js (revision 103310) |
+++ Source/WebCore/inspector/front-end/ConsoleMessage.js (working copy) |
@@ -139,7 +139,7 @@ |
this._formattedMessage.appendChild(messageText); |
- var dumpStackTrace = !!this._stackTrace && (this.source === WebInspector.ConsoleMessage.MessageSource.Network || this.level === WebInspector.ConsoleMessage.MessageLevel.Error || this.type === WebInspector.ConsoleMessage.MessageType.Trace); |
+ var dumpStackTrace = !!this._stackTrace && this._stackTrace.length && (this.source === WebInspector.ConsoleMessage.MessageSource.Network || this.level === WebInspector.ConsoleMessage.MessageLevel.Error || this.type === WebInspector.ConsoleMessage.MessageType.Trace); |
if (dumpStackTrace) { |
var ol = document.createElement("ol"); |
ol.className = "outline-disclosure"; |