XHRs manually resent via Devtools > Network don't show response
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(firefox136 fixed)
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: mitya, Assigned: bomsy)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Steps to reproduce:
- Go to any webpage that fires an XHR
- Open dev tooks > network
- Cause the XHR to fire
- Highlight the XHR in the list of requests
- Right click, click either "resend" or "edit and resend" then "send"
Actual results:
The request is resent but the response is hidden, i.e. under the "Response" tab there's nothing (but for the original XHR, fired by the web page itself, the response is shown.) See attached video.
Expected results:
Response to be shown.
For whatever reason the video file I tried to attach didn't attach (though no feedback/error was given). Here it is: https://mitya.uk/firefox-issue.asf
Comment 2•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•1 year ago
|
||
Hello Mitya, we can't reproduce the issue easily, so maybe there's something specific about those requests that triggers the problem.
Would you be able to share the page you're seeing this on?
If not, can you tell us how the request is made, does it have credentials, is it done on a different domain than the page itself, …
Thanks!
Updated•1 year ago
|
For me this happens on all sites and with all requests. I've disabled ad-blocker, in case that was it, but no difference.
Example: https://ecosia.org. If you open that URL with the network console open, you should see an XHR with a URI containing notifications?
. That has a JSON response. If I right click and refire it, it sends the request, and it completes again with a 200, but the response tab says "No response data available for this request".
Comment 5•1 year ago
|
||
Thanks for the additional details, we can reproduce with this website. It seems that the resent request is using slightly different headers compared to the original one (eg Sec-Fetch-Mode
is set to no-cors
instead of cors
)
Assignee | ||
Comment 6•1 year ago
|
||
Interesting. So should this be configured a bug? Surely "resend" should resend the request exactly "as was", same headers, same everything. Or did you mean the server is giving different headers in its response to the re-sent request?
Updated•11 months ago
|
Comment 9•7 months ago
|
||
Hi Bomsy, not sure if you have seen the feedback from Valentin and Nicolas on the patch, could we make this move forward?
Updated•2 months ago
|
Updated•2 months ago
|
Assignee | ||
Comment 10•2 months ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #9)
Hi Bomsy, not sure if you have seen the feedback from Valentin and Nicolas on the patch, could we make this move forward?
Apologies, got back to this.
Comment 11•2 months ago
|
||
Comment 12•2 months ago
|
||
bugherder |
Description
•