NEW 190505
Web Inspector: preserve showing the Request/Response when switching between network entries
https://bugs.webkit.org/show_bug.cgi?id=190505
Summary Web Inspector: preserve showing the Request/Response when switching between n...
Devin Rousso
Reported 2018-10-11 19:02:30 PDT
* 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 "Request" content under "Preview" 5. Fire another request on the page 6. Select the newly added resource (it must also have a request payload) => "Response" content shown for the second resource instead of "Request" Example request: fetch("data.json?" + Math.random(), { method: "POST", // headers: {"Content-Type": "application/json"}, body: `{"a":1,"b":2,"c":3,"d":4,"e":5,"f":6}`, });
Attachments
Devin Rousso
Comment 1 2018-10-11 21:39:51 PDT
As it turns out, this does work (mostly) as you'd expect. The "Request"/"Response"/"JSON" 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's actually a FIXME in `WI.ResourceClusterContentView` about this exact issue.
Note You need to log in before you can comment on or make changes to this bug.