[whatwg] SharedWorkers and the name parameter

Jim Jewett jimjjewett at gmail.com
Tue Aug 25 18:02:18 PDT 2009


On Tue, Aug 25, 2009 at 7:24 PM, Ian Hickson<ian at hixie.ch> wrote:

> Drew Wilson wrote:
>> Per section 4.8.3 of the SharedWorkers spec,
>> if a page loads a shared worker with a url and
>> name, it is illegal for any other page under the
>> same origin to load a worker with the same name

> The idea here is that if you have an app that
> does database manipulation, you might want to
> ensure there is only ever one shared worker
> doing the manipulation, so you might decide
> on a shared worker name that is in charge of
> that, and then you can be sure that you don't
> accidentally start two workers with that name
> using different copies of a script

So the name is really intended as a (lightweight) URN, but it can
default to the URL?

-jJ


More information about the whatwg mailing list