DescriptionXMLHttpRequest: return null upon failing responseArrayBuffer allocation.
The allocation of a response ArrayBuffer may fail, a large enough
contiguous chunk of memory simply not being available from the
underlying allocator. The spec [1] now admits allocation failure as a
possibility, allowing the return of a null buffer if so.
Update our implementation accordingly, returning null rather than
failing hard with an OOM.
1 - https://xhr.spec.whatwg.org/#arraybuffer-response
R=haraken,yhirano
BUG=673211
Review-Url: https://codereview.chromium.org/2730943002
Cr-Commit-Position: refs/heads/master@{#455398}
Committed: https://chromium.googlesource.com/chromium/src/+/7c838d986a3d95e81971ef40050fecce0ea2be2c
Patch Set 1 #
Total comments: 2
Patch Set 2 : update comment #
Total comments: 2
Patch Set 3 : mirror updated spec, and return |null| for failed allocs #
Messages
Total messages: 29 (19 generated)
|