Re: Workers

On Sat, 19 Jul 2008, Andrew Fedoniouk wrote:
> 
> Chapter:
> http://www.whatwg.org/specs/web-workers/current-work/#processing
> has following:
> ....
> #5 Let script's script execution context (and thus also global object) be
> worker.
> #6 Let script's script browsing context be owner browsing context.
> #7 Let script's script document context be owner document.
> ....
> 
> But[1] tells us that:
> "A browsing context is a collection of one or more Document objects, and one
> or more views."
> 
> Intention is to isolate Worker so it is not clear what #6 and #7 mean.

They mean exactly what they say; Workers are "isolated" in a JavaScript 
sense but this doesn't preclude them being associated with a particular 
JavaScript browsing context.


> Also it is not clear how method:
> 
> MessagePort createWorker(in DOMString scriptURL);
> 
> downloads that script. If it is an asynchronous operation then it should 
> be some event. If it is synchronous operation than it should be some 
> timeout or so defined.

It is downloaded in step 1 of the "run a worker" algorithm.

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

Received on Sunday, 20 July 2008 06:13:46 UTC