[webkit-dev] XHR responseArrayBuffer attribute

Michael Nordman michaeln at google.com
Mon Sep 27 11:31:53 PDT 2010


Yes, if we go with telling xhr up front for the array buffer case, I guess
an enum would be slightly better.

On Fri, Sep 24, 2010 at 8:39 PM, Chris Rogers <crogers at google.com> wrote:

> If we added xhr.asArrayBuffer, what would happen if xhr.asBlob was also
> set?  Don't we really want something like xhr.loadAsType with different enum
> values for text, blob, array buffer, etc.?
>
> On Fri, Sep 24, 2010 at 5:19 PM, Michael Nordman <michaeln at google.com>wrote:
>
>> With xhr.responseBlob we chose to have the caller decide up front and tell
>> the xhr object how it would like the response by setting the xhr.asBlob
>> attribute prior to calling send(). We could do the same with
>> xhr.asArrayBuffer.
>>
>> On Fri, Sep 24, 2010 at 5:09 PM, Alexey Proskuryakov <ap at webkit.org>wrote:
>>
>>>
>>> 24.09.2010, в 16:37, Chris Rogers написал(а):
>>>
>>> > I was interested to know if anybody was planning on implementing that
>>> attribute soon.  If not, I would like to add this myself.
>>>
>>> The key problem to solve is how to not double the memory use of the
>>> XMLHttpRequest object, while not making responseText and responseXML slow.
>>>
>>> See also: <https://bugs.webkit.org/show_bug.cgi?id=40954>. Do we need
>>> both responseBody and responseArrayBuffer?
>>>
>>> - WBR, Alexey Proskuryakov
>>>
>>> _______________________________________________
>>> webkit-dev mailing list
>>> webkit-dev at lists.webkit.org
>>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100927/aa326140/attachment.html>


More information about the webkit-dev mailing list