[whatwg] Web Workers Draft

Ian Hickson ian at hixie.ch
Tue Dec 16 02:48:57 PST 2008


On Tue, 9 Dec 2008, Douglas Mayle wrote:
>
> I was taking a look at the Web Workers Draft ( 
> http://www.whatwg.org/specs/web-workers/current-work/ ), and I couldn't 
> find any mention of cross domain workers.  I've read a bit about 
> relaxing domain restrictions on documents, but worker's don't seem to 
> have a document object. I also see the details about location, but I 
> haven't found any information about relaxing the origin.  Is there any 
> plan to allow cross-domain workers? I'm currently using them in Gears to 
> enable a shared storage solution, and would like to be able to migrate 
> one day to official standards.

On Tue, 9 Dec 2008, Douglas Mayle wrote:
>
> After sending this, it occurs to me that at the worst, I could have a 
> separate document to marshal access to a cross domain web worker.  It's 
> an extra hoop to jump through, but at least it would work.

Currently, scripts run in the origin of their main script, and the main 
script of a worker has to be same-origin with the creator of the script. 
We might change this once we have implementation experience, but in 
general having an <iframe> doesn't seem like a great burden for now.

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list