Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 434d012149df7c0ec24f418d594699be2f1805eb
https://github.com/WebKit/WebKit/commit/434d012149df7c0ec24f418d594699be2f1805eb
Author: Devin Rousso <[email protected]>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M Source/WebInspectorUI/UserInterface/Views/SearchSidebarPanel.js
Log Message:
-----------
Searching for a regular expression that matches the empty string in the web
inspector causes it to hang irrecoverably
https://bugs.webkit.org/show_bug.cgi?id=251622
<rdar://problem/105231661>
Reviewed by Alexey Proskuryakov.
In the case that the search regex can match nothing, increment the `lastIndex`
to move forward.
If every match is an empty string, don't show any results.
* Source/WebInspectorUI/UserInterface/Views/SearchSidebarPanel.js:
(WI.SearchSidebarPanel.prototype.performSearch.forEachMatch):
(WI.SearchSidebarPanel.prototype.performSearch.resourceCallback):
(WI.SearchSidebarPanel.prototype.performSearch.scriptCallback):
Canonical link: https://commits.webkit.org/316613@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications