Re: FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Jonas Sicking
On Tue, Apr 13, 2010 at 7:35 PM, Michael Nordman wrote: > Good question. Let me ask you one. What value should you use for the > content-type header? That value needs to contain the boundary string. You > need to know that to xhr.send the data in a way that looks like a form > submission. Just sen

Re: FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Michael Nordman
Good question. Let me ask you one. What value should you use for the content-type header? That value needs to contain the boundary string. You need to know that to xhr.send the data in a way that looks like a form submission. Just sending the blob will be "off by one" and the server side won't unde

Re: FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Jonas Sicking
On Tue, Apr 13, 2010 at 5:53 PM, Michael Nordman wrote: > > > On Tue, Apr 13, 2010 at 5:39 PM, Jonas Sicking wrote: >> >> On Tue, Apr 13, 2010 at 5:34 PM, Michael Nordman >> wrote: >> > Hmmm... maybe FormData could have a toBlob() method, and an inverse >> > means of >> > initializing a FormData

Re: FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Michael Nordman
On Tue, Apr 13, 2010 at 5:39 PM, Jonas Sicking wrote: > On Tue, Apr 13, 2010 at 5:34 PM, Michael Nordman > wrote: > > Hmmm... maybe FormData could have a toBlob() method, and an inverse means > of > > initializing a FormData object with a properly encoded Blob. > > What's the use case? ;) > Per

Re: FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Jonas Sicking
On Tue, Apr 13, 2010 at 5:34 PM, Michael Nordman wrote: > Hmmm... maybe FormData could have a toBlob() method, and an inverse means of > initializing a FormData object with a properly encoded Blob. What's the use case? ;) / Jonas

Re: FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Michael Nordman
FormData produces multipart encoded data (with boundaries and such) whereas BlobBuilder simply concatenates data together. Those are different functions. Having different ctors for these object types seems appropriate to me. There's also been talk of either initializing a with FormData and/or extr

FormData and BlobBuilder - duplication of functionality?

2010-04-13 Thread Dmitry Titov
Hi, It seems we are currently implementing 2 very similar objects - FormData and BlobBuilder . Both can be created, then strings or Blobs can be appended, then it can

Re: Not making partial result available during FileReader.readAsText()?

2010-04-13 Thread Jian Li
This is what I also feel. I am going to set total and loaded based on binary data. Just want to make sure we're in the same page for those that are spec-ed out clearly. On Mon, Apr 12, 2010 at 5:31 PM, Jonas Sicking wrote: > Unfortunately I think decoded data is impossible as you have no idea >

Re: [UMP] Subsetting (was: [XHR2] AnonXMLHttpRequest())

2010-04-13 Thread Tyler Close
On Tue, Apr 13, 2010 at 10:17 AM, Jonas Sicking wrote: > On Mon, Apr 12, 2010 at 5:28 PM, Jonas Sicking wrote: >> I wouldn't be opposed to implementing UMP, as long as there's a decent >> API for invoking it, and that it's a good subset relative to CORS. I >> think we've talked about various cons

Re: XMLHttpRequest Priority Proposal

2010-04-13 Thread Mike Belshe
On Tue, Apr 13, 2010 at 9:36 AM, Olli Pettay wrote: > Hi, > > Thanks for the comments. > this seems like a pretty useful, yet reasonable easily implementable > feature. > Good to hear. > I'd add 5th value "NORMAL", which would be the default value. > > const unsigned short CRITICAL = 0; >

Re: [UMP] Subsetting (was: [XHR2] AnonXMLHttpRequest())

2010-04-13 Thread Jonas Sicking
On Mon, Apr 12, 2010 at 5:28 PM, Jonas Sicking wrote: > On Mon, Apr 12, 2010 at 4:28 PM, Tyler Close wrote: >> On Mon, Apr 12, 2010 at 4:14 PM, Jonas Sicking wrote: >>> On Mon, Apr 12, 2010 at 3:48 PM, Tyler Close wrote: On Mon, Apr 12, 2010 at 3:41 PM, Jonas Sicking wrote: > On Mon,

Re: [UMP] Subsetting (was: [XHR2] AnonXMLHttpRequest())

2010-04-13 Thread Arthur Barstow
On Apr 12, 2010, at 4:00 PM, ext Maciej Stachowiak wrote: On Apr 12, 2010, at 10:33 AM, Tyler Close wrote: I've added a new section to the wiki page, "UMP as subset of CORS": http://www.w3.org/Security/wiki/ Comparison_of_CORS_and_UMP#UMP_as_subset_of_CORS I do not think the set of subse

Re: XMLHttpRequest Priority Proposal

2010-04-13 Thread Olli Pettay
Hi, this seems like a pretty useful, yet reasonable easily implementable feature. I'd add 5th value "NORMAL", which would be the default value. const unsigned short CRITICAL = 0; const unsigned short HIGH = 1; const unsigned short NORMAL = 2 const unsigned short LOW = 3; const unsi

XMLHttpRequest Priority Proposal

2010-04-13 Thread Mike Belshe
Hi, I'm a developer on the chrome team, and also working on SPDY. Others here at Google have requested that we expose some of the priority-based resource loading mechanics to applications so that applications can hint to the browser more information about which resources are critical and which ar

Re: [IndexedDB] Granting storage quotas

2010-04-13 Thread João Eiras
On Tue, 13 Apr 2010 12:09:14 +0200, Mark Seaborn wrote: Is there any plan for involving the user in storage allocation decisions for IndexedDB? [1] For comparison, the WebStorage API [2] doesn't have any special support for the user to make allocation choices. My understanding is that b

Re: [UMP] Subsetting (was: [XHR2] AnonXMLHttpRequest())

2010-04-13 Thread Anne van Kesteren
On Tue, 13 Apr 2010 02:28:53 +0200, Jonas Sicking wrote: I wouldn't be opposed to implementing UMP, as long as there's a decent API for invoking it, and that it's a good subset relative to CORS. I think we've talked about various constructors or flags that let you use the XHR API together with t

Re: [UMP] Subsetting (was: [XHR2] AnonXMLHttpRequest())

2010-04-13 Thread Anne van Kesteren
On Mon, 12 Apr 2010 15:49:22 +0200, Arthur Barstow wrote: Anne - as Maciej mentioned in another thread [2], it would be good to get your feedback on this subject. I don't really care about subset relations to be honest. Fixing bugs in CORS is fine, and I think that is what we should be foc

Re: Extending CSSOM Views matchMedium with callback

2010-04-13 Thread Anne van Kesteren
On Tue, 13 Apr 2010 15:39:47 +0200, Arthur Barstow wrote: All - FYI, I think the next steps here are to hash out some process related issues so I started a related discussion on the public- hypertext-cg mail list: http://lists.w3.org/Archives/Public/public-hypertext-cg/2010AprJun/0001.ht

Re: Extending CSSOM Views matchMedium with callback Re: CSS WG comments on View Modes Media Feature spec

2010-04-13 Thread Arthur Barstow
All - FYI, I think the next steps here are to hash out some process related issues so I started a related discussion on the public- hypertext-cg mail list: http://lists.w3.org/Archives/Public/public-hypertext-cg/2010AprJun/ 0001.html -Art Barstow On Apr 12, 2010, at 4:12 PM, ext Marcos

Re: VMMF updated

2010-04-13 Thread Arthur Barstow
Robin, All, On Apr 12, 2010, at 7:15 AM, ext Robin Berjon wrote: VMMF has been updated with all feedback that had been sent to the list, I look forward to commenters indicating love or hatred for the changes. I support the recent changes and think the spec is ready for LC. There are two

[IndexedDB] Granting storage quotas

2010-04-13 Thread Mark Seaborn
Is there any plan for involving the user in storage allocation decisions for IndexedDB? [1] For comparison, the WebStorage API [2] doesn't have any special support for the user to make allocation choices. My understanding is that browsers have a fixed storage limit per origin -- in Chromium, 5Mb

Re: Server Sent Events vs Web Sockets?

2010-04-13 Thread Dominique Hazael-Massieux
Le lundi 12 avril 2010 à 17:47 +, Ian Hickson a écrit : > Server sent events doesn't require any change to the network, it's > compatible with almost any setup that uses HTTP today. Web Sockets > requires that intermediaries support full-duplex connections. Server sent > events is compatible