Changeset 139593 in webkit
- Timestamp:
- Jan 14, 2013 1:44:20 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r139591 r139593 1 2013-01-14 Eugene Klyuchnikov <eustas@chromium.org> 2 3 Web Inspector: [Network] Add domain column 4 https://bugs.webkit.org/show_bug.cgi?id=106757 5 6 Reviewed by Pavel Feldman. 7 8 Adding new column will ease domain tracking / sorting. 9 10 * inspector/front-end/NetworkPanel.js: Added column. 11 * inspector/front-end/NetworkRequest.js: 12 (WebInspector.NetworkRequest.prototype.get domain): Added getter. 13 1 14 2013-01-14 Qiankun Miao <qiankun.miao@intel.com> 2 15 -
trunk/Source/WebCore/inspector/front-end/NetworkPanel.js
r139452 r139593 96 96 } 97 97 98 WebInspector.NetworkLogView._defaultColumnsVisivility = {method: true, status: true, type: true, initiator: true, size: true, time: true};98 WebInspector.NetworkLogView._defaultColumnsVisivility = {method: true, status: true, domain: false, type: true, initiator: true, size: true, time: true}; 99 99 100 100 WebInspector.NetworkLogView.prototype = { … … 158 158 _createTable: function() 159 159 { 160 var columns = {name: {}, method: {}, status: {}, type: {}, initiator: {}, size: {}, time: {}, timeline: {}};160 var columns = {name: {}, method: {}, status: {}, domain: {}, type: {}, initiator: {}, size: {}, time: {}, timeline: {}}; 161 161 162 162 columns.name.titleDOMFragment = this._makeHeaderFragment(WebInspector.UIString("Name"), WebInspector.UIString("Path")); … … 174 174 columns.status.sortable = true; 175 175 columns.status.weight = 6; 176 177 columns.domain.title = WebInspector.UIString("Domain"); 178 columns.domain.sortable = true; 179 columns.domain.weight = 6; 176 180 177 181 columns.type.title = WebInspector.UIString("Type"); … … 274 278 this._sortingFunctions.method = WebInspector.NetworkDataGridNode.RequestPropertyComparator.bind(null, "method", false); 275 279 this._sortingFunctions.status = WebInspector.NetworkDataGridNode.RequestPropertyComparator.bind(null, "statusCode", false); 280 this._sortingFunctions.domain = WebInspector.NetworkDataGridNode.RequestPropertyComparator.bind(null, "domain", false); 276 281 this._sortingFunctions.type = WebInspector.NetworkDataGridNode.RequestPropertyComparator.bind(null, "mimeType", false); 277 282 this._sortingFunctions.initiator = WebInspector.NetworkDataGridNode.InitiatorComparator; … … 1880 1885 this._methodCell = this._createDivInTD("method"); 1881 1886 this._statusCell = this._createDivInTD("status"); 1887 this._domainCell = this._createDivInTD("domain"); 1882 1888 this._typeCell = this._createDivInTD("type"); 1883 1889 this._initiatorCell = this._createDivInTD("initiator"); … … 1987 1993 1988 1994 this._refreshStatusCell(); 1995 this._refreshDomainCell(); 1989 1996 this._refreshTypeCell(); 1990 1997 this._refreshInitiatorCell(); … … 2062 2069 this._statusCell.addStyleClass("network-dim-cell"); 2063 2070 } 2071 }, 2072 2073 _refreshDomainCell: function() 2074 { 2075 this._domainCell.removeChildren(); 2076 this._domainCell.appendChild(document.createTextNode(this._request.domain)); 2077 this._domainCell.title = this._request.parsedURL.host; 2064 2078 }, 2065 2079 -
trunk/Source/WebCore/inspector/front-end/NetworkRequest.js
r133583 r139593 425 425 426 426 /** 427 * @return {string} 428 */ 429 get domain() 430 { 431 return this._parsedURL.host; 432 }, 433 434 /** 427 435 * @return {WebInspector.Resource|undefined} 428 436 */
Note: See TracChangeset
for help on using the changeset viewer.