Update support for ArrayBufferView and URLSearchParams in XHR.send #12757
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Filled in
null
values, and corrected some erroneous entries for https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/sendTest results and supporting details
ArrayBuffer
andArrayBufferView
ArrayBufferView
was added in the same release asArrayBuffer
(10). I've previously written production code that relies on IE10 supportingUInt8Array
inxhr.send()
.ArrayBuffer
was listed in theArrayBufferView
section. As far as I can tell from WebKit issues,ArrayBuffer
support was added in the same release (6) asBlob
andFormData
support (bug 50199), whileArrayBufferView
was added later in version 7 (bug 90536).URLSearchParams
URLSearchParams
object itself. https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParamsURLSearchParams
at all.URLSearchParams
object support is listed as being added in version 36, so it can't have supportedURLSearchParams
inxhr.send()
in version 12. I've updated Opera and Opera Android to match their respective Chrome versions for this API.URLSearchParams
was added in Safari 10.1 (iOS 10.3), it was implicitly supported inxhr.send()
via calling.toString()
on thebody
argument. Bug 227477 corrected theContent-Type
header, and was fixed and included in Safari Tech Preview 129 / Safari 15. I tested this manually by comparing results in Safari 14.1 and Safari 15.