Web Inspector: clearing the console should exit all console groups
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Apr 2016 17:55:44 +0000 (17:55 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Apr 2016 17:55:44 +0000 (17:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=156496
<rdar://problem/25676416>

Reviewed by Timothy Hatcher.

* UserInterface/Views/LogContentView.js:
(WebInspector.LogContentView.prototype._logCleared):
Reset nesting level to zero.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199374 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/LogContentView.js

index 7530a74..d03ec48 100644 (file)
@@ -1,3 +1,15 @@
+2016-04-12  Matt Baker  <mattbaker@apple.com>
+
+        Web Inspector: clearing the console should exit all console groups
+        https://bugs.webkit.org/show_bug.cgi?id=156496
+        <rdar://problem/25676416>
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/LogContentView.js:
+        (WebInspector.LogContentView.prototype._logCleared):
+        Reset nesting level to zero.
+
 2016-04-11  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Tab Bar items get unreadable at narrow window widths, should collapse earlier
index dddf83a..e8a0b1d 100644 (file)
@@ -633,6 +633,7 @@ WebInspector.LogContentView = class LogContentView extends WebInspector.ContentV
     _logCleared(event)
     {
         this._logViewController.clear();
+        this._nestingLevel = 0;
 
         let searchQuery = this._findBanner.searchQuery;
         if (searchQuery)