aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Body.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/Body.webidl')
-rw-r--r--components/script/dom/webidls/Body.webidl11
1 files changed, 5 insertions, 6 deletions
diff --git a/components/script/dom/webidls/Body.webidl b/components/script/dom/webidls/Body.webidl
index bb7aa5c6859..5de4aa36813 100644
--- a/components/script/dom/webidls/Body.webidl
+++ b/components/script/dom/webidls/Body.webidl
@@ -1,16 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://fetch.spec.whatwg.org/#body
-[NoInterfaceObject,
- Exposed=(Window,Worker)]
-
-interface Body {
+[Exposed=(Window,Worker)]
+interface mixin Body {
readonly attribute boolean bodyUsed;
+ readonly attribute object? body;
- // [NewObject] Promise<ArrayBuffer> arrayBuffer();
+ [NewObject] Promise<ArrayBuffer> arrayBuffer();
[NewObject] Promise<Blob> blob();
[NewObject] Promise<FormData> formData();
[NewObject] Promise<any> json();