DevTools network tab doesn't handle 421 misdirected request well
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: kbolino, Unassigned)
References
(Blocks 1 open bug)
Details
Comment 1•6 years ago
|
||
Thanks for the report!
Sorry for the delay. Could you please provide an online page I could use to reproduce the problem?
Honza
Here's a page for demonstration:
https://firefox-421-demo-ngx17mpmt.now.sh/
The request in question is of the form /misdirected?token=randomhex
The server responds to the requests in this fashion:
-
The first time it receives a certain token, it stores the token internally in a cache and responds with 421 status code and header X-Dummy-Header: foo
-
The second time it receives the same token, it removes the token from the cache and responds with 200 status code and header X-Dummy-Header: bar
The client simply issues an XMLHTTPRequest once. Firefox automatically issues a second request when the first one receives a 421 response.
In the Network tab of the Dev Tools, after both requests have been issued, you will see only 1 line for /misdirected?token=... with a 421 response code but X-Dummy-Header: bar. There is no way to discover that the original 421 response set X-Dummy-Header: foo (which could, in a more realistic scenario, be a header providing diagnostic information on why the response was misdirected), nor that the final response had status code 200.
For comparison, although I'm not endorsing the behavior as better, Chrome also shows a single line in the developer tools but it has the 200 code and X-Dummy-Header: bar.
Comment 3•6 years ago
•
|
||
Thanks for the detailed explanation about how to reproduce the problem!
I can see that the behavior is different in Firefox/Chrome.
Honza
Updated•5 years ago
|
Updated•2 years ago
|
Description
•