Bug 188287 - Web Inspector: [Backend] Page.searchInResources sometimes returns duplicate results for a resource
Summary: Web Inspector: [Backend] Page.searchInResources sometimes returns duplicate r...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-02 16:55 PDT by Joseph Pecoraro
Modified: 2018-08-02 16:55 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2018-08-02 16:55:21 PDT
Web Inspector: [Backend] Page.searchInResources sometimes returns duplicate results for a resource

Steps to Reproduce:
1. Inspect <https://www.cio.com>
2. Search for "touchMoved:"
3. May require a reload + research to trigger this issue
  => Page.searchInResources result sometimes includes select2.js multiple times

Logs:

    [Log] request: {"id":795,"method":"Page.searchInResource","params":{"frameId":"0.4","url":"https://www.cio.com/www.idge.ans/js/select2-3.5.0/select2.js","query":"touchMoved:","caseSensitive":false,"isRegex":false}} (Main.js, line 941)
    [Log] request: {"id":796,"method":"Page.searchInResource","params":{"frameId":"0.4","url":"https://www.cio.com/www.idge.ans/js/select2-3.5.0/select2.js","query":"touchMoved:","caseSensitive":false,"isRegex":false,"requestId":"0.972"}} (Main.js, line 941)

Notes:

  • PageAgent::searchInResources searches cached resources
  • NetworkAgent::searchOtherRequests searches NetworkData data, such as XHRs and Worker scripts

See also:

  Frontend workaround for this:
  <https://webkit.org/b/188270> Web Inspector: Global search sometimes returns duplicate results for a resource

Apparently we are hitting the same resource multiple times. How can the backend avoid this duplicated work?
Comment 1 Radar WebKit Bug Importer 2018-08-02 16:55:42 PDT
<rdar://problem/42879586>