| Summary: | Web Inspector: Remove time and weight from the dashboard | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Timothy Hatcher <timothy> | ||||
| Component: | Web Inspector | Assignee: | Timothy Hatcher <timothy> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | DoNotImportToRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Timothy Hatcher
2015-04-22 12:11:04 PDT
Created attachment 251354 [details]
Patch
Comment on attachment 251354 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251354&action=review > Source/WebInspectorUI/UserInterface/Views/DashboardContainerView.js:143 > + console.assert(contentView, "Unknown representedObject", representedObject); > + if (!contentView) I fixed this locally. It should be dashboardView, not contentView. Comment on attachment 251354 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251354&action=review > Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js:-40 > - tooltip: WebInspector.UIString("Total size of all resources, click to show the Network Requests timeline"), Be sure to update localized strings as well. > Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js:-41 > - handler: this._networkItemWasClicked These are the only callers of "this._networkItemWasClicked" so you should remove that as well. > Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js:-76 > - var timeItem = this._items.time; > - timeItem.text = dashboard.time ? Number.secondsToString(dashboard.time) : "\u2014"; > - this._setItemEnabled(timeItem, dashboard.time > 0); This removes what I think are the only users of "dashboard.time" and "dashboard.resourcesSize". Should we then also remove these properties, and management, from the WebInspector.DefaultDashboard Model object? |