[whatwg/fetch] Correct blob: URL range requests (PR #1621)

In particular:

* Return a network error when rangeStart is out-of-range.
* If rangeStart is null, it should become fullLength - rangeEnd, not 0. rangeEnd then has to be adjusted as well.
* If rangeEnd is out-of-range, it should become fullLength - 1.

Tests: ...

<!--
Thank you for contributing to the Fetch Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [x] At least two implementers are interested (and none opposed):
   * Fixes for #1520.
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * …
- [ ] [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=1399678
   * Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1784880
   * WebKit: https://bugs.webkit.org/show_bug.cgi?id=248994

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

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

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

-- Commit Summary --

  * Correct blob: URL range requests

-- File Changes --

    M fetch.bs (71)

-- Patch Links --

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

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

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

Received on Tuesday, 21 March 2023 13:34:48 UTC