W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [Workers] Worker same-origin and usage in JS libraries...

From: Ojan Vafai <ojan@chromium.org>
Date: Thu, 29 Nov 2012 16:47:53 -0800
Message-ID: <CANMdWTvHcK47p1bkSnJJsgD4+_ikzTu9QVJDuLFwYNOZmjdYvQ@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: Jonas Sicking <jonas@sicking.cc>, Travis Leithead <travis.leithead@microsoft.com>, public-webapps <public-webapps@w3.org>, Adrian Bateman <adrianba@microsoft.com>, Adam Barth <abarth@chromium.org>
On Thu, Nov 29, 2012 at 4:31 PM, Ian Hickson <ian@hixie.ch> wrote:

> On Tue, 17 Jul 2012, Ian Hickson wrote:
> >
> > My plan is to make it so that cross-origin URLs start cross-origin
> > workers. The main unresolved question is how to do this in an opt-in
> > manner. The best idea I've come up with so far is having scripts that
> > want to opt-in to being run in such a way start with a line line:
> >
> >    // Cross-Origin Worker for: http://example.net
> >
> > ...or (for multiple domains):
> >
> >    // Cross-Origin Worker for: http://example.com https://example.org
> >
> > ...or (for any domain):
> >
> >    // Cross-Origin Worker for all origins
> >
> > ...but that doesn't seem super neat.
>
> Just as an update, I still plan to do this, but I'm currently waiting for
> browser vendors to more widely implement the existing Worker,
> SharedWorker, MessagePort, and PortCollection features before adding more
> features to this part of the spec. It would also be helpful to have
> confirmation from browser vendors that y'all actually _want_ cross-origin
> workers, before I spec it.
>

The only difference with cross-origin workers is that they're in a
different execution environment, right? If so, seems like a good thing to
support. I don't see any downside and it doesn't sound especially difficult
to implement.


>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>
>
Received on Friday, 30 November 2012 00:48:44 GMT

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