W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: [EventSource] Make it available in Worker

From: Ivan Enderlin @ Hoa <@>
Date: Sun, 22 Apr 2012 17:30:53 -0400
Message-ID: <4F94788D.7010704@hoa-project.net>
To: Glenn Maynard <glenn@zewt.org>
CC: public-webapps@w3.org
Hi Glenn,


On 22/04/12 12:11, Glenn Maynard wrote:
> On Sun, Apr 22, 2012 at 8:47 AM, Ivan Enderlin @ Hoa 
> <w3c@hoa-project.net <mailto:w3c@hoa-project.net>> wrote:
>
>     Are they any reasons to not have the EventSource interface
>     available in a WorkerGlobalScope?
>
>     The W3C specifies that they must be no interface objects and
>     constructors in this scope [1], 
>
>
> It's available in workers.
>
> "... except for the following:
> ... Constructors defined by specifications that explicitly say that 
> they should be visible when the script's global object is a 
> DedicatedWorkerGlobalScope, a SharedWorkerGlobalScope, or an object 
> implementing the WorkerUtils interface"
>
> and http://dev.w3.org/html5/eventsource says:
>
> "This constructor must be visible when the script's global object is 
> either a Window object or an object implementing the WorkerUtils 
> interface."
>
>     and the MDN documentation confirms that [2]
>
>
> This is just a random sample of interfaces, not an exhaustive list.
Oh thanks, I didn't see that it was mentionned in the EventSource 
specification. An exhaustive list would be welcome (probably in the 
Worker specification), what do you think?

>
>     [3] http://w3.org/TR/eventsource/
>
>
> Always click the "latest editor's draft" link at the top to get to the 
> version that everyone is actually using.  "TR" links are invariably 
> out of date and incorrect.
Hum, damn. I thought “TR” redirected to the last version.

Thanks for your reply.
Cheers.

-- 
Ivan Enderlin
Developer of Hoa
http://hoa.42/ or http://hoa-project.net/

PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis)
http://disc.univ-fcomte.fr/ and http://www.inria.fr/
Received on Sunday, 22 April 2012 21:31:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:51 GMT