- From: Michael Nordman <michaeln@google.com>
- Date: Fri, 14 Nov 2008 16:59:45 -0800
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 > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20081114/43b255ee/attachment.htm>
Received on Friday, 14 November 2008 16:59:45 UTC