On Fri, Nov 14, 2008 at 4:37 PM, Aaron Boodman <[EMAIL PROTECTED]> wrote:

> On Fri, Nov 14, 2008 at 4:33 PM, Jonas Sicking <[EMAIL PROTECTED]> wrote:
> > Hmm.. this makes a lot of sense for importScripts, but for XHR you
> probably
> > 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
>

Reply via email to