[whatwg/fetch] Attach timing info and URL to network errors, and report for fetch API (#1311)

The timing info attached to a network error is always "opaque",
containing only start/end time and the original request URL.

This change currently only applies to the fetch API, and should be
applied to the different callers of FETCCH as part of [this](whatwg/html#6542) and [this](whatwg/xhr#319) work.

Closes #1215
- [x ] At least two implementers are interested (and none opposed):
   * See discussion at #1215.

- [ ] [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:
   * Chrome: …
   * Firefox: …
   * Safari: …

(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/1311


-- Commit Summary --

  * <a href="https://github.com/whatwg/fetch/pull/1311/commits/cb872fb052357d16dacd38e0c5f2d5a06a497683">Expose a mechanism for hiding internal timing info</a>
  * <a href="https://github.com/whatwg/fetch/pull/1311/commits/2bb855f368d09038bf8575fc057d564cdd4fc98a">Attach timing info and URL to network errors</a>

-- File Changes --

    M fetch.bs (176)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1311.patch

https://github.com/whatwg/fetch/pull/1311.diff


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

Received on Sunday, 26 September 2021 07:38:56 UTC