Open Bug 1949202 Opened 24 days ago Updated 17 days ago

Can't see HTTP version on aborted requests

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

(Blocks 1 open bug)

Details

While investigating bug 1948276, we came across aborted request with the error code NS_ERROR_NET_INTERRUPT.
Toggling http2 support seems to prevent this error.
It would have been great to be able to see the HTTP Version being used in those request.

Here is a test page to easily reproduce early aborted request:
data:text/html,<script>var xhr = new XMLHttpRequest(); xhr.open("GET", "http://techno-barje.fr/fooo", true); xhr.send(null); xhr.abort();</script>

For such early aborted request, nsIHttpChannel.protocolVersion throws with NS_ERROR_NOT_AVAILABLE.
nsIHttpChannelInternal.getResponseVersion() throws, but nsIHttpChannelInternal.getRequestVersion() reports HTTP 1.1.

DevTools currently only uses getResponseVersion, but we may be able to fallback to getRequestVersion for aborted requests.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.