[Webkit-unassigned] [Bug 137831] New: WebSocket readyState should not throw an exception ever.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 17 12:48:31 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137831

            Bug ID: 137831
           Summary: WebSocket readyState should not throw an exception
                    ever.
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sirisian at gmail.com

Webkit currently throws an exception if a handshake fails and the user attempts to access the readyState member. The following exception can be seen with Webkit's implementation when a handshake is interrupted:

WebSocket connection to 'wss://example.com' failed: Connection closed before receiving a handshake response 

This should simply close the connection and set the readyState to CLOSED and call the onerror event. Having readyState throw an exception for this is unintuitive. (I don't think any other browser does this).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141017/b254d9d9/attachment-0002.html>


More information about the webkit-unassigned mailing list