Re: [FileAPI] createObjectURL isReusable proposal

2012-01-28 Thread Bronislav Klučka
On 28.1.2012 7:10, Darin Fisher wrote: On Wed, Dec 14, 2011 at 4:40 PM, Ian Hickson i...@hixie.ch mailto:i...@hixie.ch wrote: On Wed, 14 Dec 2011, Adrian Bateman wrote: [...] the first dereference of the URL revokes it. This means that you can do something like:

Re: Image.toBlob()

2012-01-28 Thread Kyle Huey
2012/1/28 Bronislav Klučka bronislav.klu...@bauglir.com Hello, would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would be nice addition Brona Proposing a more detailed spec would be a good place to start. Some example

Re: Image.toBlob()

2012-01-28 Thread Bronislav Klučka
On 28.1.2012 10:19, Kyle Huey wrote: 2012/1/28 Bronislav Klučka bronislav.klu...@bauglir.com mailto:bronislav.klu...@bauglir.com Hello, would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would be nice

Re: [FileAPI] createObjectURL isReusable proposal

2012-01-28 Thread Glenn Maynard
On Fri, Jan 27, 2012 at 6:14 PM, Glenn Maynard gl...@zewt.org wrote: Something else that needs to be defined: does xhr.open('GET', url) consume the URL, or does that only happen when xhr.send() is called? (I'm not looking for the answer here, just giving an example of something that needs to

Re: [xhr] responseType for sync requests in window context

2012-01-28 Thread Glenn Maynard
2012/1/26 Mark Callow callow_m...@hicorp.co.jp I do not think you should be in the business of brute-forcing authors into converting their applications to use async XHRs. As far as I understand it, it is the application's UI that may be unresponsive during a sync XHR. In that case it should

Re: [xhr] responseType for sync requests in window context

2012-01-28 Thread Darin Fisher
Please keep in mind that multiple web apps share the same main thread. While browser's can keep their own UI responsive in the face of synchronous XHRs, they cannot do the same for other web app, which may share their main thread with a web app that uses synchronous XHR. Unfortunately, the web

Re: [FileAPI] createObjectURL isReusable proposal

2012-01-28 Thread Kyle Huey
Why though? What stops UAs from accepting the relevant objects for .src properties? - Kyle On Sat, Jan 28, 2012 at 2:47 AM, Ian Hickson i...@hixie.ch wrote: On Sat, 28 Jan 2012, Kyle Huey wrote: On Sat, Jan 28, 2012 at 7:10 AM, Darin Fisher da...@chromium.org wrote: I'm not sure what

Re: [FileAPI] createObjectURL isReusable proposal

2012-01-28 Thread Bronislav Klučka
It's reference issue img.src = URL.createObjectUrl(blob) means, that you cannot GC that blob, because URL is just text representation of reference. img.src = URL.createObjectUrl(blob, true) means, that you can GC that blob, because once URL is dereferenced, it will not be dereferenced again