On Sun, Apr 22, 2012 at 8:47 AM, Ivan Enderlin @ Hoa <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. [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. -- Glenn MaynardReceived on Sunday, 22 April 2012 16:12:25 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:33 UTC