Skip to content

Commit

Permalink
Bug 1839316: part 3) Add RequestPriority to <Request.webidl>. r=ker…
Browse files Browse the repository at this point in the history
…shaw,webidl,saschanaz

It's required for `ScriptFetchOptions`, see
<https://searchfox.org/mozilla-central/rev/3424c000a7ff304b2d1efb8561a924232f7f12fc/js/loader/ScriptLoadRequest.h#58-60,85>.

In a following part, `RequestPriority` will be added to `RequestInit`,
hence the former is defined in the correct file.

Differential Revision: https://phabricator.services.mozilla.com/D182006
  • Loading branch information
mbrodesser-Igalia committed Aug 7, 2023
1 parent b02cbc9 commit 2820604
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom/webidl/Request.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ interface Request {
};
Request includes Body;

// <https://fetch.spec.whatwg.org/#requestinit>.
dictionary RequestInit {
ByteString method;
HeadersInit headers;
Expand Down Expand Up @@ -78,3 +79,4 @@ enum RequestMode { "same-origin", "no-cors", "cors", "navigate" };
enum RequestCredentials { "omit", "same-origin", "include" };
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
enum RequestRedirect { "follow", "error", "manual" };
enum RequestPriority { "high" , "low" , "auto" };

0 comments on commit 2820604

Please sign in to comment.