diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-06-05 15:08:57 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-06-05 15:08:57 +0800 |
commit | dc690653da22343aeb5ea47cea52f5a71d900a06 (patch) | |
tree | 5b0f5c8ceb5f72e0d55378e5f4bb93822f3fbe4d /components/script/dom/webidls/XMLHttpRequest.webidl | |
parent | 8536cee72cca0f8a4d9f7a14b47a8b16ed356179 (diff) | |
download | servo-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.webidl | 7 |
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 |