[Webkit-unassigned] [Bug 44721] New: XHR.responseBlob
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 26 14:49:35 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44721
Summary: XHR.responseBlob
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: XML
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: michaeln at google.com
Depends on: 44133
This is an umbrella bug for adding support for getting the response as a blob.
Two new additions for the XHR interface in support of this. This is not entirely solidified yet, still pending some discussion on the public lists.
boolean attribute asBlob;
// Prepares the XHR to make the response available as a blob object.
// Defaults to false, must be set after calling open() and
// prior to calling send(). Gets reset upon subsequent calls to open().
// Throws INVALID_STATE_ERR if set at an invalid time. Maybe read at
// anytime without exception.
Blob attribute responseBlob;
// Returns a blob the contains the response body.
// Only valid to access when asBlob is true and when the request is in
// a terminal state. Throws INVALID_STATE_ERR if accessed at an
// invalid time.
When asBlob is true, the other response accessors (responseText, resonseXML, responseBody) throw INVALID_STATE_ERR if accessed.
We're making this "modal" for the benefit of the browser vendors, to make it easier for them to know how to handle the response data as it comes in. With a priori knowlege that the data need never be made available thru the responseText attribute, life is a little easier for them/us.
Also see http://code.google.com/p/chromium/issues/detail?id=52486
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list