[Webkit-unassigned] [Bug 67335] WebSocket binaryType should appear when functional

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 10:21:00 PDT 2011


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


Sam Weinig <sam at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at webkit.org




--- Comment #10 from Sam Weinig <sam at webkit.org>  2011-09-15 10:21:00 PST ---
(In reply to comment #9)
> (In reply to comment #5)
> > I personally think, however, the current WebKit behavior is legitimate (hence WebIDL spec is wrong), because the value of binaryType attribute (and other attributes, such as readyState) is held by each WebSocket object, and changing such attributes shouldn't affect WebSocket prototype.
> 
> The WebIDL requirement for IDL attributes to be exposed as properties on the prototype is deliberate. It also simplifies feature detection for authors. If you think the WebIDL spec should be changed, you should file a bug on the WebIDL spec.

For the record, it is currently our intention to eventually put attributes on the prototype, we just need to figure out a way to do it with regressing performance (which is a bit difficult).  In the mean time, one can always construct a dummy object and test for the attributes presence to do feature detection.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list