Open Bug 1575465 Opened 6 years ago Updated 5 months ago

Messages panel: WebSocket messages in HAR exports

Categories

(DevTools :: Netmonitor, enhancement, P3)

70 Branch
enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: tanhengyeow, Assigned: deltatekalec, Mentored)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36

Expected results:

When exporting resources into HAR, we should have WS messages included, so that users can share them out or debug them later by importing them.

Allow WebSocket messages to be copied/saved as HAR.

Assignee: nobody → E0032242
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I think it's safe to unassign this bug and make it available to others.

I am marking this as good first bug since the patch is already available and seems to be closed to be done.

Honza

Assignee: E0032242 → nobody
Status: ASSIGNED → NEW
Keywords: good-first-bug
Assignee: nobody → surya.bdev

The bug assignee didn't login in Bugzilla in the last 7 months.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: surya.bdev → nobody
Flags: needinfo?(odvarko)
Assignee: nobody → surya.bdev
Status: NEW → ASSIGNED

@surya_b: there is a patch, perhaps we could try to finish that? Still valid bug and it would be great to fix that.

Flags: needinfo?(odvarko) → needinfo?(surya.bdev)

The bug assignee didn't login in Bugzilla in the last 7 months.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: surya.bdev → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(odvarko)

Adding myself as a mentor. Patches are welcome.
This bug is still somethinge we want to have fixed, but it isn't a priority for the team at the moment.

Mentor: odvarko
Flags: needinfo?(odvarko)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:Honza, could you please find another way to get the information or close the bug as INCOMPLETE if it is not actionable?

For more information, please visit auto_nag documentation.

Flags: needinfo?(surya.bdev) → needinfo?(odvarko)

This is still valid bug. WS data should be part of HAR.

Flags: needinfo?(odvarko)
Priority: P2 → P3
Severity: normal → S3
Assignee: nobody → surya.bdev
Status: NEW → ASSIGNED

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: surya.bdev → nobody
Status: ASSIGNED → NEW

Hello, I currently have a patch for this in progress. My patch adds an "_messages" field to HAR entries. This field is only populated for an entry where the request initiates a WS connection and sends or receives WS messages. The _messages items have a very similar format to Chrome's _webSocketMessages. It currently works for WS and seemingly SSE although I'm still seeing errors for that case, and I'm not sure if we want to provide support for them in this field.

I noticed the last time this was worked there was discussion of making this fully compatible with Chrome's HAR format. If this is still the path we want to follow I think it is feasible.

Please make me assignee on this issue. Any available reviewers, please get in touch with me so we can discuss next steps. Thank you.

(In reply to Delta Tekalec from comment #11)

Hello, I currently have a patch for this in progress. My patch adds an "_messages" field to HAR entries. This field is only populated for an entry where the request initiates a WS connection and sends or receives WS messages. The _messages items have a very similar format to Chrome's _webSocketMessages. It currently works for WS and seemingly SSE although I'm still seeing errors for that case, and I'm not sure if we want to provide support for them in this field.

I noticed the last time this was worked there was discussion of making this fully compatible with Chrome's HAR format. If this is still the path we want to follow I think it is feasible.

Please make me assignee on this issue. Any available reviewers, please get in touch with me so we can discuss next steps. Thank you.

On second thought, it makes more sense to separate WS and SSE messages into separate attributes. That way we can maintain compatibility with Chrome's HAR format and leave the door open for SSE support in the future. I'd like to hear to hear from those with more experience however.

Flags: needinfo?(odvarko)
Assignee: nobody → deltatekalec
Status: NEW → ASSIGNED

Thank you for the patch Delta!
Bomsy, thank you for reviewing it!

Flags: needinfo?(odvarko)

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: deltatekalec → nobody
Status: ASSIGNED → NEW
Assignee: nobody → deltatekalec
Status: NEW → ASSIGNED

While working this ticket, I found this bug. Web Socket messages that reproduce this bug also cause the HAR builder to fail on their originating requests. It seems very likely to me that they share the same cause.

Recreation of my previous patch because I could not reapply it locally
since migration to git.

Attachment #9445813 - Attachment description: Bug 1575465 - Add WebSocket Messages to HAR exports. r?honza → Bug 1575465 - Messages panel: WebSocket messages in HAR exports. r=honza
Attachment #9517064 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: