aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/interfaces/fetch.idl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/interfaces/fetch.idl')
-rw-r--r--tests/wpt/web-platform-tests/interfaces/fetch.idl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/interfaces/fetch.idl b/tests/wpt/web-platform-tests/interfaces/fetch.idl
index 7ff07451047..1d8a97ef940 100644
--- a/tests/wpt/web-platform-tests/interfaces/fetch.idl
+++ b/tests/wpt/web-platform-tests/interfaces/fetch.idl
@@ -17,7 +17,9 @@ interface Headers {
iterable<ByteString, ByteString>;
};
-typedef (Blob or BufferSource or FormData or URLSearchParams or ReadableStream or USVString) BodyInit;
+typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) XMLHttpRequestBodyInit;
+
+typedef (ReadableStream or XMLHttpRequestBodyInit) BodyInit;
interface mixin Body {
readonly attribute ReadableStream? body;
readonly attribute boolean bodyUsed;
@@ -70,7 +72,7 @@ dictionary RequestInit {
any window; // can only be set to null
};
-enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" };
+enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" };
enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
enum RequestCredentials { "omit", "same-origin", "include" };
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };