Closed Bug 1915717 Opened 1 year ago Closed 1 year ago

[network-markers] Expose http protocol version for a request in the profiler network tab

Categories

(Core :: Gecko Profiler, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: acreskey, Assigned: sekim)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fp])

Attachments

(1 file)

There are vast differences between version of the HTTP protocol, 1.1/2/3, and it would be useful to have this exposed in the profiler.

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [fxp]
Assignee: nobody → sekim
Pushed by sekim@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72d0981a52ea [network markers] Expose http protocol version for a request in the profiler network tab r=acreskey,necko-reviewers,profiler-reviewers,devtools-reviewers,kershaw,aabh,jdescottes
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch

This might not be working as expected -- I'm always seeing HTTP/1.1 for the version.
But when I load a site like Cloudflare I can verify via dev tools or logs that I'm connecting over HTTP/2 or HTTP/3
Sean, can you take a look?

Flags: needinfo?(sekim)

I think this has to do with the fact that we return "http/1.1" when HttpVersion is invalid or unavailable. We might need to return something else or create a separate method like our initial approach.

Flags: needinfo?(sekim)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Kershaw, any thoughts on this?

Flags: needinfo?(kershaw)

(In reply to Sean Kim from comment #7)

Kershaw, any thoughts on this?

Looking at your patch again.
It looks like at every place of profiler_add_network_marker, you are using mRequestHead.Version().
I think we should use the version from mResponseHead instead.
Note that mResponseHead will be only available after OnStartRequest, so we need to take care of this.

Flags: needinfo?(kershaw)

Will file another bug for easier version tracking

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
See Also: → 1938620
Severity: N/A → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: