Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Open Resource dialog should support matching file paths
https://bugs.webkit.org/show_bug.cgi?id=178152 <rdar://problem/34925656> Reviewed by Patrick Angle. * Source/WebInspectorUI/UserInterface/Controllers/ResourceQueryController.js: (WI.ResourceQueryController.prototype.executeQuery): (WI.ResourceQueryController.prototype._findSpecialCharacterIndicesInDisplayName): Added. (WI.ResourceQueryController.prototype._findSpecialCharacterIndicesInURL): Added. (WI.ResourceQueryController.prototype._findSpecialCharacterIndices): Deleted. Do a second search for the entire URL. Use the result that has the better rank. * Source/WebInspectorUI/UserInterface/Controllers/QueryController.js: (WI.QueryController.prototype.findSpecialCharacterIndices): Added. * Source/WebInspectorUI/UserInterface/Controllers/CSSQueryController.js: (WI.CSSQueryController.prototype.executeQuery): (WI.CSSQueryController.prototype._findSpecialCharacterIndicesInPropertyName): Added. (WI.CSSQueryController.prototype._findSpecialCharacterIndices): Deleted. Move the shared `_findSpecialCharacterIndices` to the base class to avoid repeated logic. * Source/WebInspectorUI/UserInterface/Models/ResourceQueryResult.js: (WI.ResourceQueryResult): (WI.ResourceQueryResult.prototype.get searchString): Added. Include the string for the matches so callers can reason about what was matched. * Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js: (WI.OpenResourceDialog.prototype._populateResourceTreeOutline): (WI.OpenResourceDialog.prototype._populateResourceTreeOutline.createHighlightedTitleFragment): Shift the matches if it was for the entire URL, so that highlights still appear for the display name. * LayoutTests/inspector/unit-tests/css-query-controller.html: * LayoutTests/inspector/unit-tests/css-query-controller-expected.txt: * LayoutTests/inspector/unit-tests/resource-query-controller.html: * LayoutTests/inspector/unit-tests/resource-query-controller-expected.txt: Canonical link: https://commits.webkit.org/251155@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
9 changed files
with
229 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.