aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/XMLHttpRequest.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/XMLHttpRequest.webidl')
-rw-r--r--components/script/dom/webidls/XMLHttpRequest.webidl7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/script/dom/webidls/XMLHttpRequest.webidl b/components/script/dom/webidls/XMLHttpRequest.webidl
index 097b4f7177c..2c043b9407a 100644
--- a/components/script/dom/webidls/XMLHttpRequest.webidl
+++ b/components/script/dom/webidls/XMLHttpRequest.webidl
@@ -12,8 +12,11 @@
* http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
*/
+// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit
+typedef (Blob or BufferSource or FormData or DOMString or URLSearchParams) XMLHttpRequestBodyInit;
+
// https://fetch.spec.whatwg.org/#bodyinit
-typedef (Blob or BufferSource or FormData or DOMString or URLSearchParams or ReadableStream) BodyInit;
+typedef (ReadableStream or XMLHttpRequestBodyInit) BodyInit;
enum XMLHttpRequestResponseType {
"",
@@ -54,7 +57,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
attribute boolean withCredentials;
readonly attribute XMLHttpRequestUpload upload;
[Throws]
- void send(optional (Document or BodyInit)? data = null);
+ void send(optional (Document or XMLHttpRequestBodyInit)? data = null);
void abort();
// response