W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2010

Re: Discussion of File API at TPAC in Lyon

From: Dmitry Titov <dimich@chromium.org>
Date: Tue, 16 Nov 2010 13:00:04 -0800
Message-ID: <AANLkTimSUJxYVAh7d0c9x=KhxmH4VVijb=8P=nxcxhpn@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Michael Nordman <michaeln@google.com>, Anne van Kesteren <annevk@opera.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Adrian Bateman <adrianba@microsoft.com>, Arun Ranganathan <aranganathan@mozilla.com>, Web Applications Working Group WG <public-webapps@w3.org>, Adam Barth <w3c@adambarth.com>
On Tue, Nov 16, 2010 at 12:20 PM, Jonas Sicking <jonas@sicking.cc> wrote:

> On Tue, Nov 16, 2010 at 12:07 PM, Dmitry Titov <dimich@chromium.org>
> wrote:
> > Thanks Michael,
> > so the proposed change is this:  window.createObjectURL ->
> > window.URL.createObjectURL
> > and it means it's also possible to do something like this:
> > var otherWindow = window.open(...)
> > otherWindow.URL.createObjectURL(...)
> > Is this correct understanding?
>
> If you do this, then the lifetime of the URL is the lifetime of the
> Document in otherWindow.
>
> Actually since at the time you're calling createObjectURL otherWindow
> still contains an about:blank document, as soon as the url passed to
> window.open is loaded, the returned URL will expire.
>

That makes perfect sense, thanks!
Received on Tuesday, 16 November 2010 21:00:35 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:42 GMT