Skip to content

Commit de32b7c

Browse files
Add back RequestInit.priority property (#1572)
Co-authored-by: saschanaz <[email protected]>
1 parent 78c9f6d commit de32b7c

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,7 @@ interface RequestInit {
16671667
method?: string;
16681668
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
16691669
mode?: RequestMode;
1670+
priority?: RequestPriority;
16701671
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
16711672
redirect?: RequestRedirect;
16721673
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -28304,6 +28305,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
2830428305
type RequestCredentials = "include" | "omit" | "same-origin";
2830528306
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
2830628307
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
28308+
type RequestPriority = "auto" | "high" | "low";
2830728309
type RequestRedirect = "error" | "follow" | "manual";
2830828310
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
2830928311
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";

baselines/serviceworker.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ interface RequestInit {
536536
method?: string;
537537
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
538538
mode?: RequestMode;
539+
priority?: RequestPriority;
539540
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
540541
redirect?: RequestRedirect;
541542
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -8635,6 +8636,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
86358636
type RequestCredentials = "include" | "omit" | "same-origin";
86368637
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
86378638
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
8639+
type RequestPriority = "auto" | "high" | "low";
86388640
type RequestRedirect = "error" | "follow" | "manual";
86398641
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
86408642
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";

baselines/sharedworker.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ interface RequestInit {
502502
method?: string;
503503
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
504504
mode?: RequestMode;
505+
priority?: RequestPriority;
505506
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
506507
redirect?: RequestRedirect;
507508
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -8639,6 +8640,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
86398640
type RequestCredentials = "include" | "omit" | "same-origin";
86408641
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
86418642
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
8643+
type RequestPriority = "auto" | "high" | "low";
86428644
type RequestRedirect = "error" | "follow" | "manual";
86438645
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
86448646
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";

baselines/webworker.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ interface RequestInit {
580580
method?: string;
581581
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
582582
mode?: RequestMode;
583+
priority?: RequestPriority;
583584
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
584585
redirect?: RequestRedirect;
585586
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -9371,6 +9372,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
93719372
type RequestCredentials = "include" | "omit" | "same-origin";
93729373
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
93739374
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
9375+
type RequestPriority = "auto" | "high" | "low";
93749376
type RequestRedirect = "error" | "follow" | "manual";
93759377
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
93769378
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";

inputfiles/removedTypes.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,6 @@
540540
"adAuctionHeaders": null, // Blink only as of 2023-11
541541
"attributionReporting": null, // Blink only as of 2023-10
542542
"duplex": null, // Blink only as of 2023-09
543-
"priority": null, // Blink only as of 2023-09,
544543
"privateToken": null, // Blink only as of 2023-09
545544
"sharedStorageWritable": null, // Blink only as of 2023-10
546545
"targetAddressSpace": null // Blink only as of 2023-09

0 commit comments

Comments
 (0)