The default bug view has changed. See this FAQ.

No longer dispatch incoming WebSocket messages in CLOSING state

RESOLVED FIXED in mozilla11

Status

()

Core
Networking: WebSockets
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: jduell, Assigned: jduell)

Tracking

({dev-doc-needed})

unspecified
mozilla11
dev-doc-needed
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 581872 [details] [diff] [review]
v1

The latest (W3C Candidate Recommendation 08 December 2011) websocket spec changed message dispatch behavior: a websocket must no longer dispatch incoming messages once it is in the CLOSING state (see section 5, "When a WebSocket message has been received", bullet point 1).

This fix is quite simple: just check for OPEN state during dispatch.

I've verified that the test fails w/o the patch, and succeeds with it.
Attachment #581872 - Flags: review?(bugs)
Attachment #581872 - Flags: review?(bugs) → review+
(Assignee)

Comment 1

5 years ago
https://hg.mozilla.org/mozilla-central/rev/a558bfcac2e6
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
(Assignee)

Updated

5 years ago
Assignee: nobody → jduell.mcbugs
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.