W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [FileAPI] createObjectURL isReusable proposal

From: Arun Ranganathan <aranganathan@mozilla.com>
Date: Fri, 24 Feb 2012 11:12:09 -0800 (PST)
To: Bronislav Klučka <Bronislav.Klucka@bauglir.com>
Cc: public-webapps@w3.org
Message-ID: <48400945.1184309.1330110729506.JavaMail.root@zimbra1.shared.sjc1.mozilla.com>

> I could also go with reverse approach, with createObjectURL being
> oneTimeOnly by default
> createObjectURL(Blob aBlob, boolean? isPermanent)
> instead of current
> createObjectURL(Blob aBlob, boolean? isOneTime)
> the fact, that user would have to explicitly specify, that such URL
> is
> permanent should limit cases of "I forgot to release something
> somewhere"... and I thing could be easier to understant, that
> explicit
> request for pemranent = explicit release. Would break current
> implementations, sure, but if we are considering changes....

So, having these URLs be "oneTimeOnly" by default itself has issues, as Glenn (and Darin) point out:


The existing model makes that scenario false by default, trading off anything "racy" against culling strings.

I actually believe that strings for URLs may be short-lived, depending on how the URL API comes along [1] and depending on the discussion on extending interfaces.  Both Chrome and Fx have create* and revoke* implemented now; the new options parameter adds some convenience which I think is worth it.

-- A*

[1] http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html

> B.
Received on Friday, 24 February 2012 19:13:04 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC