Changeset 90635 in webkit
- Timestamp:
- Jul 8, 2011 8:53:56 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r90634 r90635 1 2011-07-08 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Web Inspector: NetworkPanel search failed if the matched sting is in the query part of url 4 https://bugs.webkit.org/show_bug.cgi?id=64167 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/front-end/NetworkPanel.js: 9 (WebInspector.NetworkPanel.prototype._matchResource): 10 (WebInspector.NetworkPanel.prototype._highlightNthMatchedResource): 11 (WebInspector.NetworkDataGridNode.prototype._refreshNameCell): 12 * inspector/front-end/Resource.js: 13 (WebInspector.Resource.prototype.get folder): 14 1 15 2011-07-08 Benjamin Poulain <benjamin@webkit.org> 2 16 -
trunk/Source/WebCore/inspector/front-end/NetworkPanel.js
r90556 r90635 1118 1118 return -1; 1119 1119 1120 if ((!resource.displayName || !resource.displayName.match(this._searchRegExp)) && (!resource.path || !resource.path.match(this._searchRegExp)))1120 if ((!resource.displayName || !resource.displayName.match(this._searchRegExp)) && !resource.folder.match(this._searchRegExp)) 1121 1121 return -1; 1122 1122 … … 1169 1169 1170 1170 var nameMatched = resource.displayName && resource.displayName.match(this._searchRegExp); 1171 var pathMatched = resource.path && resource. path.match(this._searchRegExp);1171 var pathMatched = resource.path && resource.folder.match(this._searchRegExp); 1172 1172 if (!nameMatched && pathMatched && !this._largerResourcesButton.toggled) 1173 1173 this._toggleLargerResources(); … … 1659 1659 var subtitle = this._resource.displayDomain; 1660 1660 1661 if (this._resource.path && this._resource.lastPathComponent) { 1662 var lastPathComponentIndex = this._resource.path.lastIndexOf("/" + this._resource.lastPathComponent); 1663 if (lastPathComponentIndex != -1) 1664 subtitle += this._resource.path.substring(0, lastPathComponentIndex); 1665 } 1661 if (this._resource.path) 1662 subtitle += this._resource.folder; 1666 1663 1667 1664 this._appendSubtitle(this._nameCell, subtitle); -
trunk/Source/WebCore/inspector/front-end/Resource.js
r90389 r90635 248 248 }, 249 249 250 get folder() 251 { 252 var path = this.path; 253 var indexOfQuery = path.indexOf("?"); 254 if (indexOfQuery !== -1) 255 path = path.substring(0, indexOfQuery); 256 var lastSlashIndex = path.lastIndexOf("/"); 257 return lastSlashIndex !== -1 ? path.substring(0, lastSlashIndex) : ""; 258 }, 259 250 260 get displayDomain() 251 261 {
Note: See TracChangeset
for help on using the changeset viewer.