On Mon, Aug 16, 2010 at 7:05 PM, Michael Nordman <micha...@google.com> wrote: > Hi All, > I'm interested in adding support for XHR.responseBlob to webkit and chrome. > It sounds like we have a general consensus to add two new members to the > XmlHttpRequest interface: > attribute boolean asBlob; // at least for the sake of discussion, calling > it that for now > readonly attribute Blob responseBlob; > Another name option could be 'downloadAsBlob'. Personally, I like 'asBlob' > for its brevity and its naming similarity to 'withCredentials'. > Looks like the semantics of when its valid to call setRequestHeaders also > applies setting the asBlob attribute; after open() but before send() has > been called. An attempt to set the value at some inappropriate time should > throw an INVALID_STATE exception. Also the asBlob attribute value should > probably be reset to 'false' upon return from open(), again similar to how > the request headers are cleared out upon return from open(). > Anne, have you been following this discussion, wdyt? > Michael
Sounds good, though I think we let asBlob act is more like withCredentials and not get reset upon open(). Thus it can also be settable before open() as well. / Jonas