Re: Workers

On Sun, 20 Jul 2008, Andrew Fedoniouk wrote:
> > 
> > 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.
> 
> Sorry but what exactly is that "browsing context"? Is it set of objects, 
> interfaces or just such a smell?
>
> (For some reasons I found difficult for myself to understand language 
> used in http://www.whatwg.org/specs/web-workers/ ,sorry again)

The Workers spec assumes knowledge of the terminology in HTML5. In 
particular, anything with a faint thick green underline is a term defined 
in HTML5. For example browsing contexts are defined here:

   http://www.whatwg.org/specs/web-apps/current-work/#browsing1


> > It is downloaded in step 1 of the "run a worker" algorithm.
> 
> Is it list item #1 in:
> http://www.whatwg.org/specs/web-workers/current-work/#processing ?
> 
> If "yes" then for me it contains only this:
> 
> "Attempt to fetch the resource identified by url.
>  If the attempt fails,....
>  If the attempt succeeds, then ...."
> 
> Question is: how that Attempt is made exactly?
> Synchronously or asynchronously?

I don't know what the distinction would be -- there's nothing else running 
on that execution content at that time, how could one distinguish an 
asychronous fetch from a synchronous one?

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

Received on Sunday, 20 July 2008 07:12:23 UTC