Intent to Remove: WebSocket.URL (uppercase attribute alias)

37 views
Skip to first unread message

Joshua Bell

unread,
Mar 2, 2015, 12:43:19 PM3/2/15
to blink-dev
Primary eng (and PM) emails
jsb...@chromium.org
phi...@opera.com


Link to “Intent to Deprecate” thread

https://groups.google.com/a/chromium.org/d/msg/blink-dev/1m47rW4w7dc/MOf_2kgb2wIJw


Summary

Remove the previously deprecated `URL` attribute on the WebSocket interface, which is an alias for the standard `url` attribute.


Motivation

The uppercase attribute name dates from the earliest iterations of the WebSockets API proposal, circa 2009. By spec revisions in 2011 the API had switched to lowercase, and that was what standardized and implemented in other browsers. 

http://whatwg.org/C#the-websocket-interface


Usage information from UseCounter

https://www.chromestatus.com/metrics/feature/popularity#WebSocketURL

Usage is hovering around 0.02% since the deprecation message went in last July.

Entry on chromestatus.com

https://www.chromestatus.com/features/6555138000945152


Compatibility Risk

The uppercase attribute isn't supported in Opera 12.16 (Presto), Firefox Nightly and IE11, but per source inspection, the uppercase alias is still present in WebKit.


http://jsconsole.com/?new%20WebSocket%28%22ws%3A%2F%2Fexample.com%2F%22%29.URL


Chris Harrelson

unread,
Mar 2, 2015, 1:12:31 PM3/2/15
to Joshua Bell, blink-dev
LGTM

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Philip Jägenstedt

unread,
Mar 2, 2015, 11:05:40 PM3/2/15
to Chris Harrelson, Joshua Bell, blink-dev
LGTM2!

Also LGTM to remove EventSource.URL as a separate CL, which was deprecated at the same time but has lower usage:

Philip

Takeshi Yoshino

unread,
Mar 2, 2015, 11:19:39 PM3/2/15
to Philip Jägenstedt, Chris Harrelson, Joshua Bell, blink-dev
LGTM (non API owner)

Takeshi

Dimitri Glazkov

unread,
Mar 2, 2015, 11:25:14 PM3/2/15
to Takeshi Yoshino, Philip Jägenstedt, Chris Harrelson, Joshua Bell, blink-dev
LGTM3

:DG<

PhistucK

unread,
Mar 18, 2015, 3:29:40 PM3/18/15
to Dimitri Glazkov, Takeshi Yoshino, Philip Jägenstedt, Chris Harrelson, Joshua Bell, blink-dev
Same as with EventSource - I think these numbers are not meaningful when we do not have the numbers for the WebSocket construction itself.


PhistucK
Reply all
Reply to author
Forward
0 new messages