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

Re: Shared workers - use .source instead of .ports[0] ?

From: Simon Pieters <simonp@opera.com>
Date: Wed, 11 Apr 2012 11:05:57 +0200
To: "Jonas Sicking" <jonas@sicking.cc>
Cc: "David Levin" <levin@google.com>, "Andrew Wilson" <atwilson@google.com>, "Jarred Nicholls" <jarred@webkit.org>, "public-webapps@w3c.org" <public-webapps@w3c.org>
Message-ID: <op.wclfj7h6idj3kv@simons-macbook-pro.local>
On Wed, 11 Apr 2012 09:29:53 +0200, Jonas Sicking <jonas@sicking.cc> wrote:

> I would prefer to expose the port through .source even if we can't get
> rid of .ports[0] right now.

I think the longer we wait with removing it, the more legacy will be  
created that relies on its existence.

> The ports property is basically useless
> right now except for this one instance and so while I agree that there
> might be some confusion in the short term, it doesn't seem like it
> would be a compatibility problem, and long term it seems like a win
> that authors wouldn't have to worry about the property at all. It
> might continue to work if we decide that it's needed for back compat,
> but it seems like we eventually would be able to get rid of it given
> how new the property still is.
> / Jonas

Simon Pieters
Opera Software
Received on Wednesday, 11 April 2012 09:06:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:33 UTC