[whatwg] Inline Web Worker

Tab Atkins Jr. jackalmage at gmail.com
Sat Oct 16 09:29:02 PDT 2010


On Sat, Oct 16, 2010 at 3:30 AM, Simon Pieters <simonp at opera.com> wrote:
> On Sat, 16 Oct 2010 03:12:38 +0200, Jonas Sicking <jonas at sicking.cc> wrote:
>
>> Allowing both blob URLs and data URLs for workers sounds like a great
>> idea.
>
> FWIW, Opera supports data URLs for Worker (but not SharedWorker since it
> could be used to cross the same-origin policy if two pages opened a
> SharedWorker with the same data URL -- this could be solved while still
> supporting data URLs but we decided to just drop it for now).

Right; that doesn't seem at all necessary.  Data urls pick up an
origin when they're resolved; there's no reason that the same data url
used in different origins would be treated as the same origin.  The
exact origin they pick up needs to be specified, but that's pretty
trivial.

~TJ



More information about the whatwg mailing list