Web Inspector: some files not listed in OpenResourceDialog
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Oct 2018 20:08:54 +0000 (20:08 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Oct 2018 20:08:54 +0000 (20:08 +0000)
commit7eebbb2538a0ba5f6f516ac8081fdf1186475c4c
tree06769ee32a88bfcfe3fffd3861eb8796909a04e8
parent58aee5ca8a73d7d33d0442cec0fa0174bd7197cd
Web Inspector: some files not listed in OpenResourceDialog
https://bugs.webkit.org/show_bug.cgi?id=190272

Reviewed by Joseph Pecoraro.

Source/WebInspectorUI:

* UserInterface/Controllers/ResourceQueryController.js:
(WI.ResourceQueryController.prototype._findQueryMatches):
Allow the `searchIndex` to go past the end of the `searchString` to allow for backtracking
if the last character of `searchString` is not found in `query`.

LayoutTests:

* inspector/unit-tests/resource-query-controller-expected.txt:
* inspector/unit-tests/resource-query-controller.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/unit-tests/resource-query-controller-expected.txt
LayoutTests/inspector/unit-tests/resource-query-controller.html
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Controllers/ResourceQueryController.js