[whatwg] Workers in HTML5
aa at google.com
Tue Feb 19 14:57:32 PST 2008
On Tue, Feb 19, 2008 at 2:58 PM, Anne van Kesteren <annevk at opera.com> wrote:
> Given that most people don't know the difference between the Window and
> the global object and the global worker object will already contain a
> bunch of APIs identical to those on the Window object it seems to me that
> giving the object and interface a different name doesn't really help.
I'm not necessarily sold on making the worker context be the global
object. I always thought having the Window object be the global object
was a bit unfortunate, myself.
What if we had separate objects:
- the global scope (with all the typical JS globals, and maybe XMLHttpRequest)
- workerContext (with all the worker stuff, plus cookies, location, etc)
More information about the whatwg