Chromium Code Reviews
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}
(cherry picked from commit 7c838d986a3d95e81971ef40050fecce0ea2be2c)
Review-Url: https://codereview.chromium.org/2748933003 .
Cr-Commit-Position: refs/branch-heads/3029@{#185}
Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471}
Committed: https://chromium.googlesource.com/chromium/src/+/0bca295bdd893a0217dd4ac32e61eccc08c83ab2
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||