Closed Bug 1621822 Opened 4 years ago Closed 4 years ago

Don't apply formatting to control frames

Categories

(DevTools :: Netmonitor, defect, P2)

defect

Tracking

(firefox76 fixed)

RESOLVED FIXED
Firefox 76
Tracking Status
firefox76 --- fixed

People

(Reporter: Harald, Assigned: kishlaya.j)

References

Details

Attachments

(1 file)

Control frames just the ping/pong heartbeat that keeps the connection alive. WS inspector should not try to format them.

Bug 1619026 shows how this breaks the UI.

Can you please assign this to me?

So the desired behaviour should be when the ping/pong/close frames are selected, then only the raw data should be displayed?

Flags: needinfo?(hkirschner)

Thank you Kishlaya, assigned.

So the desired behaviour should be when the ping/pong/close frames are selected, then only the raw data should be displayed?

Yes, perfect. Control frames would be any opCode %x8 to %xF.

Reference from the RFC: https://tools.ietf.org/html/rfc6455

      *  %x0 denotes a continuation frame

      *  %x1 denotes a text frame

      *  %x2 denotes a binary frame

      *  %x3-7 are reserved for further non-control frames

      *  %x8 denotes a connection close

      *  %x9 denotes a ping

      *  %xA denotes a pong

      *  %xB-F are reserved for further control frames
Flags: needinfo?(hkirschner) → needinfo?(kishlaya.j)
Assignee: nobody → kishlaya.j
Status: NEW → ASSIGNED
Flags: needinfo?(kishlaya.j)

Harald, do you have a test case for this?

I don't see any control frame on https://crossbar.io/ ?
Anything specific I should do with the page?

Honza

Flags: needinfo?(hkirschner)

I could not find any on the index page or https://demo.crossbar.io/. I was hoping I can close the connection; which would generate a control frame.

Flags: needinfo?(hkirschner)

(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #5)

Harald, do you have a test case for this?

You can use this website. It sends PING/PONG messages after staying idle for some time. And additionally, you can also send a CLOSE message.

I also wanted to ask the following: now that patch needs revision - after making the suggested changes, should I submit a new patch altogether?

Thanks for the test case!

after making the suggested changes, should I submit a new patch altogether?

Just update the existing revision

Honza

Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01467623d2ea
ControlFrame opCodes returns raw payload without parsing r=Honza
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: