Changeset 180935 in webkit
- Timestamp:
- Mar 3, 2015 8:52:09 AM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r180916 r180935 1 2015-03-03 Brian J. Burg <burg@cs.washington.edu> 2 3 Web Inspector: Console log level selector loses selection on reload 4 https://bugs.webkit.org/show_bug.cgi?id=142199 5 6 Reviewed by Timothy Hatcher. 7 8 The selected items in the console scope bar were being saved as settings, 9 but the "All" scope is forcibly selected on reload due to a logic bug. 10 11 * UserInterface/Base/Main.js: 12 (WebInspector.showFullHeightConsole): 13 The scope bar may already have selected items restored from WebInspector.Settings. 14 Don't select a scope unless explicitly requested (i.e., clicking on dashboard buttons) 15 or if no scopes are selected at all. (In the latter case, "All" is the default scope.) 16 17 * UserInterface/Views/LogContentView.js: 18 (WebInspector.LogContentView): Don't specify a default value here to avoid trampling 19 settings. The "All" scope is selected by default in showFullHeightConsole if 20 nothing else is selected. 21 1 22 2015-03-02 Joseph Pecoraro <pecoraro@apple.com> 2 23 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r180913 r180935 623 623 }; 624 624 625 WebInspector.showFullHeightConsole = function( scope)625 WebInspector.showFullHeightConsole = function(requestedScope) 626 626 { 627 627 this.splitContentBrowser.element.classList.add("hidden"); … … 629 629 this._showingSplitConsoleSetting.value = false; 630 630 631 scope = scope || WebInspector.LogContentView.Scopes.All;631 var scope = requestedScope || WebInspector.LogContentView.Scopes.All; 632 632 633 633 // If the requested scope is already selected and the console is showing, then switch back to All. … … 635 635 scope = WebInspector.LogContentView.Scopes.All; 636 636 637 this.consoleContentView.scopeBar.item(scope).selected = true; 637 if (requestedScope || !this.consoleContentView.scopeBar.selectedItems.length) 638 this.consoleContentView.scopeBar.item(scope).selected = true; 638 639 639 640 if (!this.contentBrowser.currentContentView || this.contentBrowser.currentContentView !== this.consoleContentView) { -
trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js
r180913 r180935 55 55 56 56 var scopeBarItems = [ 57 new WebInspector.ScopeBarItem(WebInspector.LogContentView.Scopes.All, WebInspector.UIString("All") , true),57 new WebInspector.ScopeBarItem(WebInspector.LogContentView.Scopes.All, WebInspector.UIString("All")), 58 58 new WebInspector.ScopeBarItem(WebInspector.LogContentView.Scopes.Errors, WebInspector.UIString("Errors")), 59 59 new WebInspector.ScopeBarItem(WebInspector.LogContentView.Scopes.Warnings, WebInspector.UIString("Warnings")),
Note: See TracChangeset
for help on using the changeset viewer.