Re: Discussion of File API at TPAC in Lyon

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 UTC