<?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>190505</bug_id>
          
          <creation_ts>2018-10-11 19:02:30 -0700</creation_ts>
          <short_desc>Web Inspector: preserve showing the Request/Response when switching between network entries</short_desc>
          <delta_ts>2019-05-29 12:00:48 -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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>jamaln</cc>
    
    <cc>nathanjoe755</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1468302</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2018-10-11 19:02:30 -0700</bug_when>
    <thetext>* STEPS TO REPRODUCE:
1. Open WebInspector on any page
2. Go to the Network tab
3. Select a resource that has a request payload (e.g. JSON sent with the request)
4. Show the &quot;Request&quot; content under &quot;Preview&quot;
5. Fire another request on the page
6. Select the newly added resource (it must also have a request payload)
 =&gt; &quot;Response&quot; content shown for the second resource instead of &quot;Request&quot;

Example request:

    fetch(&quot;data.json?&quot; + Math.random(), {
        method: &quot;POST&quot;,
        // headers: {&quot;Content-Type&quot;: &quot;application/json&quot;},
        body: `{&quot;a&quot;:1,&quot;b&quot;:2,&quot;c&quot;:3,&quot;d&quot;:4,&quot;e&quot;:5,&quot;f&quot;:6}`,
    });</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468353</commentid>
    <comment_count>1</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2018-10-11 21:39:51 -0700</bug_when>
    <thetext>As it turns out, this does work (mostly) as you&apos;d expect.  The &quot;Request&quot;/&quot;Response&quot;/&quot;JSON&quot; choice is preserved per URL, but it is not preserved across URLs, meaning adding `Math.random()` to the end of the URL will cause each request to be given a different setting.  If you run the example in comment 0, but without the `Math.random`, it should work as expected.  Selecting to a network entry with a different URL, however, will not.

There&apos;s actually a FIXME in `WI.ResourceClusterContentView` about this exact issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>