To implement bug 65247, we need to determine the WebSocket protocol used by the WebSocketChannel associated with it. WebSocket objects may reside in worker threads. WorkerContext does not provide the way to obtain Settings values, thus we need to get the value from WebSocketChannel (which is in the loader thread).
Created attachment 102141 [details] Patch
Comment on attachment 102141 [details] Patch This looks like a case where a bool is better than an enum, because callers don't use true/false literals, and there is no confusion.
Comment on attachment 102141 [details] Patch Clearing flags on attachment: 102141 Committed r91919: <http://trac.webkit.org/changeset/91919>
All reviewed patches have been landed. Closing bug.