Bug 1573003 [wpt PR 18377] - Update interfaces/fetch.idl, a=testonly
authorautofoolip <auto@foolip.org>
Wed, 14 Aug 2019 10:55:24 +0000
changeset 488099 c9694304fca4accbcb7c49a386e81dab34b961c2
parent 488098 c09e52feec63f2617c9483221e3bc4ad8a46b727
child 488100 371d397dd98a37ffeec153357a1f95810e13dce5
push id36435
push usercbrindusan@mozilla.com
push dateThu, 15 Aug 2019 09:46:49 +0000
treeherdermozilla-central@0db07ff50ab5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1573003, 18377
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573003 [wpt PR 18377] - Update interfaces/fetch.idl, a=testonly Automatic update from web-platform-tests Update interfaces/fetch.idl (#18377) Source: https://github.com/tidoust/reffy-reports/blob/3336bd0/whatwg/idl/fetch.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/570123391 -- wpt-commits: 903d4328e750ab5aadb3ede44ec651310ed56ae7 wpt-pr: 18377
testing/web-platform/tests/interfaces/fetch.idl
--- a/testing/web-platform/tests/interfaces/fetch.idl
+++ b/testing/web-platform/tests/interfaces/fetch.idl
@@ -22,17 +22,17 @@ interface mixin Body {
   [NewObject] Promise<ArrayBuffer> arrayBuffer();
   [NewObject] Promise<Blob> blob();
   [NewObject] Promise<FormData> formData();
   [NewObject] Promise<any> json();
   [NewObject] Promise<USVString> text();
 };
 typedef (Request or USVString) RequestInfo;
 
-[Constructor(RequestInfo input, optional RequestInit init),
+[Constructor(RequestInfo input, optional RequestInit init = {}),
  Exposed=(Window,Worker)]
 interface Request {
   readonly attribute ByteString method;
   readonly attribute USVString url;
   [SameObject] readonly attribute Headers headers;
 
   readonly attribute RequestDestination destination;
   readonly attribute USVString referrer;
@@ -67,17 +67,17 @@ 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 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" };
 enum RequestRedirect { "follow", "error", "manual" };
-[Constructor(optional BodyInit? body = null, optional ResponseInit init), Exposed=(Window,Worker)]
+[Constructor(optional BodyInit? body = null, optional ResponseInit init = {}), Exposed=(Window,Worker)]
 interface Response {
   [NewObject] static Response error();
   [NewObject] static Response redirect(USVString url, optional unsigned short status = 302);
 
   readonly attribute ResponseType type;
 
   readonly attribute USVString url;
   readonly attribute boolean redirected;