Intent to Deprecate: EventSource.URL and WebSocket.URL

70 views
Skip to first unread message

Philip Jägenstedt

unread,
Jul 26, 2014, 2:33:14 PM7/26/14
to blink-dev

Primary eng (and PM) emails

phi...@opera.com


Summary

Deprecate EventSource.URL and WebSocket.URL


Motivation

The lower-case url attributes are standardized:

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

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


They upper-case attributes aren't supported in any other engine I've tested:
http://jsconsole.com/?new%20EventSource%28%22http%3A%2F%2Fexample.com%2F%22%29.URL

Opera 12.16 (Presto), Firefox Nightly and IE11 were tested. Note that IE11 doesn't seem to support EventSource at all.

Compatibility Risk

Given the lack of support in Firefox and IE, risk seems low. WebKit-only mobile sites are probably most at risk.


Alternative implementation suggestion for web developers

Use EventSource.url and WebSocket.url attributes instead.


Usage information from UseCounter

EventSource.URL ~0.0005%: http://www.chromestatus.com/metrics/feature/timeline/popularity/254

WebSocket.URL ~0.02%: http://www.chromestatus.com/metrics/feature/timeline/popularity/255


Entry on chromestatus.com, crbug.com, or MDN

http://www.chromestatus.com/features/5311740673785856

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


Requesting approval to remove too?

No, let the deprecation them be deprecated for at least one release cycle first.

Eric Seidel

unread,
Jul 26, 2014, 4:24:03 PM7/26/14
to Philip Jägenstedt, blink-dev
lgtm, great.

Dimitri Glazkov

unread,
Jul 26, 2014, 4:28:34 PM7/26/14
to Eric Seidel, Philip Jägenstedt, blink-dev
LGTM2.

Jochen Eisinger

unread,
Jul 28, 2014, 7:54:33 AM7/28/14
to Dimitri Glazkov, Eric Seidel, Philip Jägenstedt, blink-dev
lgtm3

Joe Medley

unread,
Apr 17, 2015, 3:47:11 PM4/17/15
to blin...@chromium.org
I have another email thread suggesting EventSource.URL was removed with M43. I need to know the story on both.

Sigbjorn Finne

unread,
Apr 17, 2015, 3:53:49 PM4/17/15
to Joe Medley, blin...@chromium.org
Den 4/17/2015 21:47, Joe Medley skreiv:
> I have another email thread suggesting EventSource.URL was removed with
> M43. I need to know the story on both.
>

https://code.google.com/p/chromium/issues/detail?id=249727 has the story
on why we have the uppercase versions.

--sigbjorn

Joe Medley

unread,
Apr 17, 2015, 3:57:04 PM4/17/15
to Sigbjorn Finne, blink-dev
I have to make sure certain web sites are updated. I don't need a story, just the exact version when the properties were removed.

Joe Medley | Technical Writer | jme...@google.com | 816-678-7195

Joshua Bell

unread,
Apr 17, 2015, 4:29:03 PM4/17/15
to Joe Medley, Sigbjorn Finne, blink-dev
EventSource's nonstandard URL alias was removed in blink r191340
WebSocket's nonstandard URL alias was removed in blink r191246

Per omahaproxy, 42 had blink @ r190579, 43 had blink @ r193137

So... 43 for both.



Sigbjorn Finne

unread,
Apr 17, 2015, 4:30:57 PM4/17/15
to Joe Medley, blink-dev
Den 4/17/2015 21:56, Joe Medley skreiv:
> I have to make sure certain web sites are updated. I don't need a story,
> just the exact version when the properties were removed.
>

Ah, sorry, thanks for doing that. Both were removed on M43 --

EventSource.URL >= 43.0.2324.2
WebSocket.URL >= 43.0.2322.0

hth
--sigbjorn
Reply all
Reply to author
Forward
0 new messages