[webkit-reviews] review denied: [Bug 88294] FileAPI: Blob should support ArrayBufferView instead of ArrayBuffer for Constructor Parameters : [Attachment 145732] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 5 14:16:23 PDT 2012


Kenneth Russell <kbr at google.com> has denied Li Yin <li.yin at intel.com>'s request
for review:
Bug 88294: FileAPI: Blob should support ArrayBufferView instead of ArrayBuffer
for Constructor Parameters
https://bugs.webkit.org/show_bug.cgi?id=88294

Attachment 145732: Patch
https://bugs.webkit.org/attachment.cgi?id=145732&action=review

------- Additional Comments from Kenneth Russell <kbr at google.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=145732&action=review


It may be worth supporting the Blob constructor taking ArrayBuffer for a brief
period of time, warning that the old constructor is deprecated. See
Source/WebCore/Modules/indexeddb/IDBIndex.cpp for an example.

The patch looks OK overall; I'm r-'ing it due to the need for a test of
DataView.

> LayoutTests/ChangeLog:8
> +	   Change ArrayBuffer into ArrayBufferView in Blob constrcuting
function.

typo: constrcuting

> LayoutTests/fast/files/script-tests/blob-constructor.js:68
> +var blobObj = new Blob([new Int32Array(100)]);

Please test DataView too. DataView is the primary view intended to be used for
file and network I/O.


More information about the webkit-reviews mailing list