| Summary: | Web Inspector: No search results | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jeff Johnson <opendarwin> | ||||||
| Component: | Web Inspector | Assignee: | Frances Cornwall <frances_c> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Blocker | CC: | frances_c, inspector-bugzilla-changes, pc2, rcaliman, w0nka, webkit-bug-importer | ||||||
| Priority: | P1 | Keywords: | InRadar | ||||||
| Version: | Safari Technology Preview | ||||||||
| Hardware: | Mac (Apple Silicon) | ||||||||
| OS: | macOS 13 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jeff Johnson
2023-08-04 15:59:49 PDT
Created attachment 467200 [details]
Screenshot of Safari
On further investigation, there are no search results anywhere in the web inspector. I tested in STP 175 and Minibrowser. I found that search did not fire when entering text. If you press the done button, and then open up the search panel again, the results will populate correctly. If you attempt to do a further search, you will have to repeat the steps as mentioned before. Currently investigating a fix for this bug. In FindBanner.js the _inputFieldSearch(event) is not being triggered. (I can see that there is an event listener in the constructor.)
this._inputField.addEventListener("search", this._inputFieldSearch.bind(this), false);
If I add a call to that function (this._inputFieldSearch(event)) in _inputFieldKeyUp(event) the search starts working when typing.
I am not confident this is the correct solution though.
Frances@MacBook-Air WebKit % git diff
diff --git a/Source/WebInspectorUI/UserInterface/Views/FindBanner.js b/Source/WebInspectorUI/UserInterface/Views/FindBanner.js
index debbf8e67296..df9c4cea0b8f 100644
--- a/Source/WebInspectorUI/UserInterface/Views/FindBanner.js
+++ b/Source/WebInspectorUI/UserInterface/Views/FindBanner.js
@@ -241,6 +241,8 @@ WI.FindBanner = class FindBanner extends WI.NavigationItem
this._searchBackwards = false;
else if (event.keyIdentifier === "Enter")
this._searchKeyPressed = false;
+
+ this._inputFieldSearch(event)
}
_inputFieldSearch(event)
Pull request: https://github.com/WebKit/WebKit/pull/16507 Committed 266783@main (6d291b6825cc): <https://commits.webkit.org/266783@main> Reviewed commits have been landed. Closing PR #16507 and removing active labels. *** Bug 260545 has been marked as a duplicate of this bug. *** |