aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/XMLHttpRequest.webidl
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2020-06-05 15:08:57 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2020-06-05 15:08:57 +0800
commitdc690653da22343aeb5ea47cea52f5a71d900a06 (patch)
tree5b0f5c8ceb5f72e0d55378e5f4bb93822f3fbe4d /components/script/dom/webidls/XMLHttpRequest.webidl
parent8536cee72cca0f8a4d9f7a14b47a8b16ed356179 (diff)
downloadservo-dc690653da22343aeb5ea47cea52f5a71d900a06.tar.gz
servo-dc690653da22343aeb5ea47cea52f5a71d900a06.zip
update XHR send to use XMLHttpRequestBodyInit
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