W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[Bug 14057] New: In section "The WebSocket interface" when describing the operation of the WebSocket constructor, the following statement is made: "Return a new WebSocket object, and continue these steps in the background (without blocking scripts). ... Establish a WebSoc

From: <bugzilla@jessica.w3.org>
Date: Wed, 07 Sep 2011 06:29:35 +0000
To: public-webapps@w3.org
Message-ID: <bug-14057-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14057

           Summary: In section "The WebSocket interface" when describing
                    the operation of the WebSocket constructor, the
                    following statement is made: "Return a new WebSocket
                    object, and continue these steps in the background
                    (without blocking scripts). ... Establish a WebSoc
           Product: WebAppsWG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: WebSocket API (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


Specification: http://dev.w3.org/html5/websockets/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
In section "The WebSocket interface" when describing the operation of the
WebSocket constructor, the following statement is made:

"Return a new WebSocket object, and continue these steps in the background
(without blocking scripts). ... Establish a WebSocket connection given the set
(host, port, resource name, secure), ..."

This is problematic because it means that the WebSocket connection can be
successfuly established before the script has a chance to set the onopen
property. This can result in missed onopen events.

Instead the operation of the WebSocket constructor should be suspended until
the currently executing script block is finished.

Dan Shappir
Ericom Software

Posted from: 81.218.35.98
User agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;
Trident/5.0)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 7 September 2011 06:29:47 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT