[whatwg/fetch] Add the Priority Hints changes to the fetch spec (PR #1523)

This applies the [specified changes](https://wicg.github.io/priority-hints/#fetch-integration) changes from the [Priority Hints spec](https://wicg.github.io/priority-hints/) to fetch for #1319.

The main changes are:
* Rename the existing implementor-internal `priority` to `internal priority`.
* Add a new `priority` enum to the `Request` and `RequestInit` objects.

- [ ] At least two implementers are interested (and none opposed):
   * Chrome (Shipped in 103)
   * 
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are already being run as part of the Priority Hints spec (and can be moved to fetch once the changes are merged):
   * https://github.com/web-platform-tests/wpt/blob/024804a44481f76a637142d1442ac292726eb049/interfaces/priority-hints.idl
   * https://github.com/web-platform-tests/wpt/blob/3404ba04e59e2c49e10112e454bf4e34fd6aeadf/priority-hints/fetch-api-request.tentative.any.js
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=821464
   * Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1797715
   * WebKit: https://bugs.webkit.org/show_bug.cgi?id=247291
   * Deno (not for CORS changes): https://github.com/denoland/deno/issues/16502
   * Node.js: https://github.com/nodejs/node/issues/45261
- [ ] [MDN](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests):
   * Already [documented](https://developer.mozilla.org/en-US/docs/Web/API/Request/priority) as experimental from the existing spec, can be moved to non-experimental after merged.


You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1523

-- Commit Summary --

  * Add the Priority Hints changes to the fetch spec

-- File Changes --

    M fetch.bs (29)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1523.patch
https://github.com/whatwg/fetch/pull/1523.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1523
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1523@github.com>

Received on Monday, 31 October 2022 22:07:11 UTC