servo/tests/wpt/meta/fetch
araya 2947476bdd
Fix Response:bodyUsed behavior to return false if the body is null (#39287)
This PR fixes some test-cases in
https://wpt.fyi/results/fetch/api/response/response-consume-empty.any.html?product=servo

Fetch standard indicates `Response:bodyUsed` should return `false` if
the body content is null , even if the stream was disturbed.
https://fetch.spec.whatwg.org/#dom-body-bodyused

> The bodyUsed getter steps are to return true if
[this](https://webidl.spec.whatwg.org/#this)’s
[body](https://fetch.spec.whatwg.org/#concept-body-body) is non-null and
[this](https://webidl.spec.whatwg.org/#this)’s
[body](https://fetch.spec.whatwg.org/#concept-body-body)’s
[stream](https://fetch.spec.whatwg.org/#concept-body-stream) is
[disturbed](https://streams.spec.whatwg.org/#is-readable-stream-disturbed);
otherwise false.

---------

Signed-off-by: araya <araya@araya.dev>
2025-09-14 08:33:54 +00:00
..
api Fix Response:bodyUsed behavior to return false if the body is null (#39287) 2025-09-14 08:33:54 +00:00
compression-dictionary Sync WPT with upstream (13-06-2025) (#37436) 2025-06-13 14:15:36 +00:00
connection-pool Rename metadata directories 2023-06-22 21:15:41 +02:00
content-encoding Enable the zstd decoder (#36530) 2025-09-10 14:58:45 +00:00
content-length Enable service worker WPT tests. (#36221) 2025-03-31 08:31:24 +00:00
content-type Add resource header for mime sniffing (#39167) 2025-09-07 12:31:57 +00:00
corb Implement basics of link preloading (#37036) 2025-05-29 11:26:27 +00:00
cross-origin-resource-policy Check all ancestor navigable trustworthiness for mixed content (#36157) 2025-04-05 05:38:24 +00:00
data-urls Simplify the data: protocol handler (#33500) 2024-09-28 00:19:30 +00:00
fetch-later Sync WPT with upstream (07-09-2025) (#39188) 2025-09-07 01:47:40 +00:00
h1-parsing Sync WPT with upstream (20-08-2023) (#30143) 2023-08-22 11:36:48 +00:00
http-cache net: Ignore pragma: no-cache if cache-control is understood (#38946) 2025-08-27 10:11:45 +00:00
local-network-access Sync WPT with upstream (03-08-2025) (#38434) 2025-08-03 01:48:15 +00:00
metadata script: Load and rasterize favicons before passing them to the embedder (#38949) 2025-08-27 14:28:42 +00:00
nosniff Sync WPT with upstream (02-06-2025) (#37212) 2025-06-02 06:06:09 +00:00
orb/tentative Add support for static SVG images using resvg crate (#36721) 2025-05-27 11:02:40 +00:00
origin Bring http_network_or_cache_fetch closer to the spec (#33531) 2024-10-08 05:36:46 +00:00
range [#34767] - Range header is missing from CORS header safelist (#35138) 2025-01-24 17:31:27 +00:00
redirect-navigate Rename metadata directories 2023-06-22 21:15:41 +02:00
redirects Rename metadata directories 2023-06-22 21:15:41 +02:00
security build(deps): bump data-url from 0.3.1 to 0.3.2 (#38862) 2025-08-27 03:22:13 +00:00
stale-while-revalidate Implement initial version of ReportingObserver (#37905) 2025-07-07 10:43:30 +00:00