[whatwg] Sending MessagePorts after they have started
michaeln at google.com
Fri Nov 14 16:59:45 PST 2008
On Fri, Nov 14, 2008 at 4:37 PM, Aaron Boodman <aa at google.com> wrote:
> On Fri, Nov 14, 2008 at 4:33 PM, Jonas Sicking <jonas at sicking.cc> wrote:
> > Hmm.. this makes a lot of sense for importScripts, but for XHR you
> > want the baseURI to be that of the opening page, since it's quite likely
> > that the opening page gave you a URI to open and process.
> My expectation was that the base URI would always be the URI of the
> worker. I think of opening a worker a lot like starting a new process,
> or opening a new window. I would expect that the new process has its
> own base URI which is the same URI as the script it is running.
My mental model for workers is a GUI less document almost. A dedicated
worker is akin to a nested iframe. A shared worker is akin to a top window
or tab. In that model, base is src of the resource loaded into the context.
> baseURI of the opening page
I don't think that would work well for shared workers.
> - a
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg