Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 50b261edfb66d41a824366be112eca53789859c4
https://github.com/WebKit/WebKit/commit/50b261edfb66d41a824366be112eca53789859c4
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
M Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp
Log Message:
-----------
[Web Inspector] Page.searchInResources silently drops cache-backed resources
from search results
https://bugs.webkit.org/show_bug.cgi?id=318417
rdar://181202027
Reviewed by Devin Rousso.
InspectorNetworkAgent::searchOtherRequests() resolves
textContentForResourceData(),
which decodes content for cache-backed resources, but then counted matches
against
resourceData->content() instead. For a cache-backed resource with no inline
buffer,
content() is null, so countRegularExpressionMatches() returned 0 and the
resource
was silently omitted from Page.searchInResources results, even when it contained
matches.
Count matches against the resolved *textContent instead.
* Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::searchOtherRequests):
Canonical link: https://commits.webkit.org/316421@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications