RESOLVED FIXED 135740
Web Inspector: Timeline Filter Bars are not appearing at all
https://bugs.webkit.org/show_bug.cgi?id=135740
Summary Web Inspector: Timeline Filter Bars are not appearing at all
Joseph Pecoraro
Reported 2014-08-07 20:50:34 PDT
* SUMMARY Timelines used to have filter bars, and they aren't showing at all. The code is still there, looks like an accident. * STEPS TO REPRODUCE 1. Inspect apple.com 2. Reload 3. Go to Network Timeline => should be able to filter just images
Attachments
[PATCH] Proposed Fix (6.92 KB, patch)
2014-08-07 20:53 PDT, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (6.90 KB, patch)
2014-08-07 22:15 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2014-08-07 20:50:47 PDT
Joseph Pecoraro
Comment 2 2014-08-07 20:53:09 PDT
Created attachment 236260 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 3 2014-08-07 20:53:48 PDT
Comment on attachment 236260 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=236260&action=review > Source/WebInspectorUI/UserInterface/Views/TimelineDataGrid.js:38 > - var scopeBar = columns["scopeBar"]; > + var scopeBar = column.scopeBar; This is the actual fix. At some point "column" accidentally became "columns".
Brian Burg
Comment 4 2014-08-07 22:01:40 PDT
Comment on attachment 236260 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=236260&action=review >> Source/WebInspectorUI/UserInterface/Views/TimelineDataGrid.js:38 >> + var scopeBar = column.scopeBar; > > This is the actual fix. At some point "column" accidentally became "columns". Mea culpa, probably happened when column data went from being a map back to being an object. In lieu of UI tests, it would be nice to have a checklist of major functionality to check for each content view. > Source/WebInspectorUI/UserInterface/Views/TimelineDataGrid.js:42 > + scopeBar.columnIdentifier = identifier; ouch.
Brian Burg
Comment 5 2014-08-07 22:04:44 PDT
Comment on attachment 236260 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=236260&action=review > Source/WebInspectorUI/UserInterface/Views/ScopeBar.js:67 > + for (var item of this._items) { Or, go FP and do: var defaultItem = this._defaultItem; return this._items.some(function(item) { return item.selected && item !== defaultItem; }) > Source/WebInspectorUI/UserInterface/Views/TimelineDataGrid.js:364 > + this.element.classList.toggle(WebInspector.TimelineDataGrid.HasNonDefaultFilterStyleClassName, scopeBar.hasNonDefaultItemSelected()); Mmm, toggle. I like toggle.
Joseph Pecoraro
Comment 6 2014-08-07 22:15:35 PDT
Created attachment 236266 [details] [PATCH] Proposed Fix I agree with the Array.prototype.some(callback, [thisObject]) suggestion. I wanted to do that.
WebKit Commit Bot
Comment 7 2014-08-07 23:56:46 PDT
Comment on attachment 236266 [details] [PATCH] Proposed Fix Clearing flags on attachment: 236266 Committed r172334: <http://trac.webkit.org/changeset/172334>
WebKit Commit Bot
Comment 8 2014-08-07 23:56:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.