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

Re: Discussion of File API at TPAC in Lyon

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 16 Nov 2010 12:20:13 -0800
Message-ID: <AANLkTinKjN1ofCf_OepuL1CTwQh=_MPS0ZEU65KcC6C2@mail.gmail.com>
To: Dmitry Titov <dimich@chromium.org>
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: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.

/ Jonas
Received on Tuesday, 16 November 2010 20:21:07 GMT

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