Re: createBlobURL

2010-10-25 Thread Anne van Kesteren
On Thu, 21 Oct 2010 19:47:08 +0200, Jonas Sicking jo...@sicking.cc wrote: On Thu, Oct 21, 2010 at 3:50 AM, Anne van Kesteren ann...@opera.com wrote: If that is the only real solution I suggest we do that. We can create some kind of DOMURL type which is either a DOMString or a

Re: createBlobURL

2010-10-25 Thread Jonas Sicking
On Mon, Oct 25, 2010 at 6:09 AM, Anne van Kesteren ann...@opera.com wrote: On Thu, 21 Oct 2010 19:47:08 +0200, Jonas Sicking jo...@sicking.cc wrote: On Thu, Oct 21, 2010 at 3:50 AM, Anne van Kesteren ann...@opera.com wrote: If that is the only real solution I suggest we do that. We can

Re: createBlobURL

2010-10-25 Thread Tab Atkins Jr.
On Mon, Oct 25, 2010 at 4:48 PM, Jonas Sicking jo...@sicking.cc wrote: Like I said, I think creating an OM that covers all the cases here would create something very complex. I'd love to see a useful proposal for http://dev.w3.org/csswg/css3-images/. It doesn't seem overly difficult. Using

Re: createBlobURL

2010-10-25 Thread Jonas Sicking
On Mon, Oct 25, 2010 at 5:04 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 4:48 PM, Jonas Sicking jo...@sicking.cc wrote: Like I said, I think creating an OM that covers all the cases here would create something very complex. I'd love to see a useful proposal for

Re: createBlobURL

2010-10-25 Thread Tab Atkins Jr.
On Mon, Oct 25, 2010 at 5:51 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Oct 25, 2010 at 5:04 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 4:48 PM, Jonas Sicking jo...@sicking.cc wrote: Like I said, I think creating an OM that covers all the cases here would

Re: createBlobURL

2010-10-25 Thread Jonas Sicking
On Mon, Oct 25, 2010 at 5:56 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 5:51 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Oct 25, 2010 at 5:04 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 4:48 PM, Jonas Sicking jo...@sicking.cc wrote:

Re: createBlobURL

2010-10-25 Thread Tab Atkins Jr.
On Mon, Oct 25, 2010 at 5:59 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Oct 25, 2010 at 5:56 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 5:51 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Oct 25, 2010 at 5:04 PM, Tab Atkins Jr. jackalm...@gmail.com wrote:

Re: createBlobURL

2010-10-25 Thread Jonas Sicking
On Mon, Oct 25, 2010 at 6:10 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 5:59 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Oct 25, 2010 at 5:56 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 5:51 PM, Jonas Sicking jo...@sicking.cc wrote:

Re: createBlobURL

2010-10-25 Thread Tab Atkins Jr.
On Mon, Oct 25, 2010 at 7:48 PM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Oct 25, 2010 at 6:10 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Mon, Oct 25, 2010 at 5:59 PM, Jonas Sicking jo...@sicking.cc wrote: However it still leaves my original statement unanswered: Like I said, I

Re: createBlobURL

2010-10-21 Thread Anne van Kesteren
On Wed, 20 Oct 2010 01:57:30 +0200, Jonas Sicking jo...@sicking.cc wrote: The only real solution here is to abandon the use of URLs-strings (blob:...) and instead use some type of object which represents a reference to the blob/stream/whatever. Then make img.src, iframe.src,

Re: createBlobURL

2010-10-21 Thread Arun Ranganathan
On 10/21/10 6:50 AM, Anne van Kesteren wrote: On Wed, 20 Oct 2010 01:57:30 +0200, Jonas Sicking jo...@sicking.cc wrote: The only real solution here is to abandon the use of URLs-strings (blob:...) and instead use some type of object which represents a reference to the blob/stream/whatever.

Re: createBlobURL

2010-10-21 Thread Jonas Sicking
On Thu, Oct 21, 2010 at 3:50 AM, Anne van Kesteren ann...@opera.com wrote: On Wed, 20 Oct 2010 01:57:30 +0200, Jonas Sicking jo...@sicking.cc wrote: The only real solution here is to abandon the use of URLs-strings (blob:...) and instead use some type of object which represents a reference to

Re: createBlobURL

2010-10-20 Thread Darin Fisher
On Tue, Oct 19, 2010 at 4:57 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Oct 19, 2010 at 1:24 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 18 Oct 2010 20:15:53 +0200, Jonas Sicking jo...@sicking.cc wrote: Without revoking the UA has to keep around the URL-string - resource

Re: createBlobURL

2010-10-19 Thread Anne van Kesteren
On Tue, 19 Oct 2010 02:30:39 +0200, Jonas Sicking jo...@sicking.cc wrote: I agree. Another thing that is nice about the window.*BlobURL() API is that it makes it clear which origin the created url will have. I.e. the origin of the window which it's called on. We could maintain that even if we

Re: createBlobURL

2010-10-19 Thread Anne van Kesteren
On Mon, 18 Oct 2010 20:15:53 +0200, Jonas Sicking jo...@sicking.cc wrote: Without revoking the UA has to keep around the URL-string - resource mapping for the lifetime of the page. Which in the world of web apps can be a very long time. Even worse, in the case of dynamically created blobs

Re: createBlobURL

2010-10-19 Thread Arun Ranganathan
On 10/19/10 4:20 AM, Anne van Kesteren wrote: On Tue, 19 Oct 2010 02:30:39 +0200, Jonas Sicking jo...@sicking.cc wrote: I agree. Another thing that is nice about the window.*BlobURL() API is that it makes it clear which origin the created url will have. I.e. the origin of the window which it's

Re: createBlobURL

2010-10-19 Thread Jonas Sicking
On Tue, Oct 19, 2010 at 1:24 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 18 Oct 2010 20:15:53 +0200, Jonas Sicking jo...@sicking.cc wrote: Without revoking the UA has to keep around the URL-string - resource mapping for the lifetime of the page. Which in the world of web apps can be

Re: createBlobURL

2010-10-19 Thread Jonas Sicking
On Tue, Oct 19, 2010 at 1:20 AM, Anne van Kesteren ann...@opera.com wrote: On Tue, 19 Oct 2010 02:30:39 +0200, Jonas Sicking jo...@sicking.cc wrote: I agree. Another thing that is nice about the window.*BlobURL() API is that it makes it clear which origin the created url will have. I.e. the

createBlobURL (was: Re: CfC: WD of File API; deadline October 22)

2010-10-18 Thread Anne van Kesteren
and System} specs. If this short comment period causes any issues or concerns, please let us know. I support publication, but [XHR2] is currently a broken link (misses a # I think). Also, if createBlobURL is the way to go -- rather than Blob.url -- can we design it in a generic way so that it also

Re: createBlobURL

2010-10-18 Thread Arun Ranganathan
with the File API: {Writer, Directories and System} specs. If this short comment period causes any issues or concerns, please let us know. I support publication, but [XHR2] is currently a broken link (misses a # I think). Duly noted. I'll fix this ASAP. Also, if createBlobURL is the way to go

Re: createBlobURL

2010-10-18 Thread Anne van Kesteren
. Implementations are already in circulation that have *.createBlobURL which leads me to: Also, is there some kind of implementation summary available regarding the File API specifications? With what is shipping prefixed and what is shipping without a prefix? We are interested in supporting this too

Re: createBlobURL

2010-10-18 Thread Jonas Sicking
in the distant future. No, but there should be.   I think it's Firefox nightlies and Chromium nightlies for now.  Firefox isn't using a prefix on the method. I would prefer it if createBlobURL and co were prefixed. Everything else is probably stable enough. cc'ing Darin who knows more about

Re: createBlobURL

2010-10-18 Thread Anne van Kesteren
On Mon, 18 Oct 2010 18:09:24 +0200, Jonas Sicking jo...@sicking.cc wrote: I would be ok with moz prefixing, though it would be nice to try to find a solution pretty quickly if all this is is a discussion about finding an appropriate name for this function. Well, if people agree with me that

Re: createBlobURL

2010-10-18 Thread Jonas Sicking
On Mon, Oct 18, 2010 at 9:16 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 18 Oct 2010 18:09:24 +0200, Jonas Sicking jo...@sicking.cc wrote: I would be ok with moz prefixing, though it would be nice to try to find a solution pretty quickly if all this is is a discussion about finding

Re: createBlobURL

2010-10-18 Thread Anne van Kesteren
On Mon, 18 Oct 2010 18:32:35 +0200, Jonas Sicking jo...@sicking.cc wrote: What would the revoking API look like? Or are you saying that there would be no way to get a string representation of the URL and instead things like img.src should accept URL objects in addition to strings? I am not

Re: createBlobURL

2010-10-18 Thread Jonas Sicking
On Mon, Oct 18, 2010 at 9:44 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 18 Oct 2010 18:32:35 +0200, Jonas Sicking jo...@sicking.cc wrote: What would the revoking API look like? Or are you saying that there would be no way to get a string representation of the URL and instead things

Re: createBlobURL

2010-10-18 Thread Arun Ranganathan
On 10/18/10 12:16 PM, Anne van Kesteren wrote: On Mon, 18 Oct 2010 18:09:24 +0200, Jonas Sicking jo...@sicking.cc wrote: I would be ok with moz prefixing, though it would be nice to try to find a solution pretty quickly if all this is is a discussion about finding an appropriate name for this

Re: createBlobURL

2010-10-18 Thread Michael Nordman
Chrome currently has this as... DOMString createBlobURL(in Blob blob); void revokeBlobURL(in DOMString blobURL); ... no prefix... on both Window and WorkerContext. An important aspect of placing these interfaces on the Window and WorkerContext was to scope the lifetime

Re: createBlobURL

2010-10-18 Thread Jonas Sicking
On Mon, Oct 18, 2010 at 5:17 PM, Michael Nordman micha...@google.com wrote: Chrome currently has this as...         DOMString createBlobURL(in Blob blob);         void revokeBlobURL(in DOMString blobURL); ... no prefix... on both Window and WorkerContext. An important aspect of placing

Re: createBlobURL

2010-10-18 Thread Arun Ranganathan
On 10/18/10 8:30 PM, Jonas Sicking wrote: On Mon, Oct 18, 2010 at 5:17 PM, Michael Nordmanmicha...@google.com wrote: Chrome currently has this as... DOMString createBlobURL(in Blob blob); void revokeBlobURL(in DOMString blobURL); ... no prefix... on both Window