RESOLVED FIXED 176063
REGRESSION(r220235): Web Inspector: Global search should not happen incrementally
https://bugs.webkit.org/show_bug.cgi?id=176063
Summary REGRESSION(r220235): Web Inspector: Global search should not happen increment...
Joseph Pecoraro
Reported 2017-08-29 13:36:17 PDT
REGRESSION(r220235): Web Inspector: Global search should not happen incrementally Incremental search is bad at the global search level because a slowly typed search string could result in full text search of strings like "a" which result in many, many results and unfortunately slow performance during that process. Steps to reproduce: 1. Inspect this page 2. Type "a" in the search field => Search happens even though I didn't consider my search term complete yet Regression: (bug 175108) > - this._searchToolbarItem = new WI.SearchBar("inspector-search", WI.UIString("Search"), null, true); > + this._searchToolbarItem = new WI.SearchBar("inspector-search", WI.UIString("Search"), true); Notes: - It does seem we can remove the unused delegate of WI.SearchBar.
Attachments
[PATCH] Proposed Fix (4.05 KB, patch)
2017-08-29 13:47 PDT, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2017-08-29 13:47:29 PDT
Created attachment 319279 [details] [PATCH] Proposed Fix
Devin Rousso
Comment 2 2017-08-29 17:08:37 PDT
Comment on attachment 319279 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=319279&action=review r=me > Source/WebInspectorUI/UserInterface/Base/Main.js:401 > + const incremental = false; > + this._searchToolbarItem = new WI.SearchBar("inspector-search", WI.UIString("Search"), incremental); NIT: since this is false, I don't think you need to include it at all.
Joseph Pecoraro
Comment 3 2017-08-29 18:18:42 PDT
Comment on attachment 319279 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=319279&action=review >> Source/WebInspectorUI/UserInterface/Base/Main.js:401 >> + this._searchToolbarItem = new WI.SearchBar("inspector-search", WI.UIString("Search"), incremental); > > NIT: since this is false, I don't think you need to include it at all. Correct. That said, I like being explicit here, so I'll leave it as is. If we ever add new options we could make this an options dictionary {optional: true}, etc.
WebKit Commit Bot
Comment 4 2017-08-29 18:29:29 PDT
Comment on attachment 319279 [details] [PATCH] Proposed Fix Clearing flags on attachment: 319279 Committed r221332: <http://trac.webkit.org/changeset/221332>
WebKit Commit Bot
Comment 5 2017-08-29 18:29:30 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2017-08-29 18:30:37 PDT
Note You need to log in before you can comment on or make changes to this bug.