This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14660 - [Editorial] Clarification for CLOSING in Garbage Collection
Summary: [Editorial] Clarification for CLOSING in Garbage Collection
Status: RESOLVED WORKSFORME
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebSocket API (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 16:48 UTC by Brian Raymor [MSFT]
Modified: 2011-11-02 20:46 UTC (History)
3 users (show)

See Also:


Attachments

Description Brian Raymor [MSFT] 2011-11-01 16:48:17 UTC
Since the W3C WebSocket API was clarified to reflect that onmessage is only called during the OPEN readyState (14474 - Make it possible to close a connection in such a manner that all subsequent events are suppressed), there are corresponding editorial changes required in Section 9 Garbage Collection:

A WebSocket object whose readyState attribute's value was set to OPEN (1) or CLOSING (2) as of the last time the event loop started executing a task must not be garbage collected if there are any event listeners registered for message events, error, or close events.

should differentiate between OPEN and CLOSING:

A WebSocket object whose readyState attribute's value was set to OPEN (1) as of the last time the event loop started executing a task must not be garbage collected if there are any event listeners registered for message events, error, or close events.

A WebSocket object whose readyState attribute's value was set to CLOSING (2) as of the last time the event loop started executing a task must not be garbage collected if there are any event listeners registered for error or close events.
Comment 1 Ian 'Hixie' Hickson 2011-11-02 20:46:36 UTC
This has already been fixed.