<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>188287</bug_id>
          
          <creation_ts>2018-08-02 16:55:21 -0700</creation_ts>
          <short_desc>Web Inspector: [Backend] Page.searchInResources sometimes returns duplicate results for a resource</short_desc>
          <delta_ts>2024-05-06 10:54:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1447446</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2018-08-02 16:55:21 -0700</bug_when>
    <thetext>Web Inspector: [Backend] Page.searchInResources sometimes returns duplicate results for a resource

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

Logs:

    [Log] request: {&quot;id&quot;:795,&quot;method&quot;:&quot;Page.searchInResource&quot;,&quot;params&quot;:{&quot;frameId&quot;:&quot;0.4&quot;,&quot;url&quot;:&quot;https://www.cio.com/www.idge.ans/js/select2-3.5.0/select2.js&quot;,&quot;query&quot;:&quot;touchMoved:&quot;,&quot;caseSensitive&quot;:false,&quot;isRegex&quot;:false}} (Main.js, line 941)
    [Log] request: {&quot;id&quot;:796,&quot;method&quot;:&quot;Page.searchInResource&quot;,&quot;params&quot;:{&quot;frameId&quot;:&quot;0.4&quot;,&quot;url&quot;:&quot;https://www.cio.com/www.idge.ans/js/select2-3.5.0/select2.js&quot;,&quot;query&quot;:&quot;touchMoved:&quot;,&quot;caseSensitive&quot;:false,&quot;isRegex&quot;:false,&quot;requestId&quot;:&quot;0.972&quot;}} (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:
  &lt;https://webkit.org/b/188270&gt; 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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447447</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-08-02 16:55:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/42879586&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033502</commentid>
    <comment_count>2</comment_count>
    <who name="Frances Cornwall">frances_c</who>
    <bug_when>2024-05-06 10:54:06 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28182</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>