Skip to content

Commit c200f14

Browse files
committed
Add back RequestInit.priority property
1 parent 2d110ad commit c200f14

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
@@ -1668,6 +1668,7 @@ interface RequestInit {
16681668
method?: string;
16691669
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
16701670
mode?: RequestMode;
1671+
priority?: RequestPriority;
16711672
/** 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. */
16721673
redirect?: RequestRedirect;
16731674
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -28130,6 +28131,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
2813028131
type RequestCredentials = "include" | "omit" | "same-origin";
2813128132
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
2813228133
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
28134+
type RequestPriority = "auto" | "high" | "low";
2813328135
type RequestRedirect = "error" | "follow" | "manual";
2813428136
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
2813528137
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
@@ -548,6 +548,7 @@ interface RequestInit {
548548
method?: string;
549549
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
550550
mode?: RequestMode;
551+
priority?: RequestPriority;
551552
/** 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. */
552553
redirect?: RequestRedirect;
553554
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -8597,6 +8598,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
85978598
type RequestCredentials = "include" | "omit" | "same-origin";
85988599
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
85998600
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
8601+
type RequestPriority = "auto" | "high" | "low";
86008602
type RequestRedirect = "error" | "follow" | "manual";
86018603
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
86028604
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
@@ -514,6 +514,7 @@ interface RequestInit {
514514
method?: string;
515515
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
516516
mode?: RequestMode;
517+
priority?: RequestPriority;
517518
/** 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. */
518519
redirect?: RequestRedirect;
519520
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -8603,6 +8604,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
86038604
type RequestCredentials = "include" | "omit" | "same-origin";
86048605
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
86058606
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
8607+
type RequestPriority = "auto" | "high" | "low";
86068608
type RequestRedirect = "error" | "follow" | "manual";
86078609
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
86088610
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
@@ -587,6 +587,7 @@ interface RequestInit {
587587
method?: string;
588588
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
589589
mode?: RequestMode;
590+
priority?: RequestPriority;
590591
/** 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. */
591592
redirect?: RequestRedirect;
592593
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
@@ -9285,6 +9286,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
92859286
type RequestCredentials = "include" | "omit" | "same-origin";
92869287
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
92879288
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
9289+
type RequestPriority = "auto" | "high" | "low";
92889290
type RequestRedirect = "error" | "follow" | "manual";
92899291
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
92909292
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
@@ -468,7 +468,6 @@
468468
"members": {
469469
"member": {
470470
"duplex": null, // Blink only as of 2022-09
471-
"priority": null, // Corresponds to Request#priority, no implementation as of 2022-09,
472471
"privateToken": null, // Blink only as of 2023-03 (but not enabled there either)
473472
"attributionReporting": null // No implementation as of 2023-04
474473
}

0 commit comments

Comments
 (0)