<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14660</bug_id>
          
          <creation_ts>2011-11-01 16:48:17 +0000</creation_ts>
          <short_desc>[Editorial] Clarification for CLOSING in Garbage Collection</short_desc>
          <delta_ts>2011-11-02 20:46:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebSocket API (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Raymor [MSFT]">brian.raymor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59419</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Raymor [MSFT]">brian.raymor</who>
    <bug_when>2011-11-01 16:48:17 +0000</bug_when>
    <thetext>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&apos;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&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59525</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-02 20:46:36 +0000</bug_when>
    <thetext>This has already been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>