WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
259843
Web Inspector: No search results
https://bugs.webkit.org/show_bug.cgi?id=259843
Summary
Web Inspector: No search results
Jeff Johnson
Reported
2023-08-04 15:59:49 PDT
Created
attachment 467199
[details]
Screenshot of Safari Technology Preview Safari Technology Preview 175 (Safari 17.0, WebKit 18617.1.1.2) on macOS (22G74) Steps to reproduce: 1) Open
https://webkit.org
2) Open web inspector 3) Select Sources tab 4) Select global.js in the sidebar 5) Search for "document" in the global.js file Expected Results: 5 matches Actual Results: No matches This bug does not occur in Safari 16.6 (18615.3.12.11.2)
Attachments
Screenshot of Safari Technology Preview
(1.61 MB, image/png)
2023-08-04 15:59 PDT
,
Jeff Johnson
no flags
Details
Screenshot of Safari
(1.62 MB, image/png)
2023-08-04 16:00 PDT
,
Jeff Johnson
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Jeff Johnson
Comment 1
2023-08-04 16:00:13 PDT
Created
attachment 467200
[details]
Screenshot of Safari
Jeff Johnson
Comment 2
2023-08-04 17:32:40 PDT
On further investigation, there are no search results anywhere in the web inspector.
Frances Cornwall
Comment 3
2023-08-07 20:41:01 PDT
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.
Frances Cornwall
Comment 4
2023-08-08 08:20:15 PDT
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)
Frances Cornwall
Comment 5
2023-08-08 18:58:28 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/16507
EWS
Comment 6
2023-08-10 14:31:06 PDT
Committed
266783@main
(6d291b6825cc): <
https://commits.webkit.org/266783@main
> Reviewed commits have been landed. Closing PR #16507 and removing active labels.
Radar WebKit Bug Importer
Comment 7
2023-08-10 14:32:16 PDT
<
rdar://problem/113714342
>
Alexey Proskuryakov
Comment 8
2023-08-24 09:22:26 PDT
***
Bug 260545
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug