From e4a8023cf334df6dd4f55056a34edb885bf5dc2e Mon Sep 17 00:00:00 2001 From: ldm0 Date: Thu, 10 Sep 2026 17:57:53 +0800 Subject: [PATCH] fix(wpt): stream the Fetch trickle fixture response Model trickle.py by draining the request body, delaying headers and body chunks, and writing TEST_TRICKLE lines according to ms/count. Preserve the optional Content-Type omission and close-delimited response framing. Exercise supported methods, defaults, duplicate/invalid parameters, progressive delivery, and both fixed-length and chunked uploads. Validation: 221 Python tests passed. With the same Moli binary, 16 WPT cases add two passing cases and eight passing subtests, with no regressions. No Rust source or build metadata changed. --- .../wpt-cross-current/passed-cases.txt | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/moli-benchmark/wpt-cross-current/passed-cases.txt b/moli-benchmark/wpt-cross-current/passed-cases.txt index e44eb6a20b3..199d2d8df3d 100644 --- a/moli-benchmark/wpt-cross-current/passed-cases.txt +++ b/moli-benchmark/wpt-cross-current/passed-cases.txt @@ -5698,10 +5698,6 @@ encoding/utf-32-from-win1252.html encoding/utf-32.html event-timing/supported-types-consistent-with-self.html fetch/api/abort/destroyed-context.html -fetch/api/basic/response-null-body.any.js?moli-wpt-any=dedicatedworker -fetch/api/basic/response-null-body.any.js?moli-wpt-any=window -fetch/api/basic/text-utf8.any.js?moli-wpt-any=dedicatedworker -fetch/api/basic/text-utf8.any.js?moli-wpt-any=window fetch/api/cors/data-url-iframe.html fetch/api/cors/data-url-shared-worker.html fetch/api/cors/data-url-worker.html @@ -5719,31 +5715,11 @@ fetch/api/policies/referrer-origin.html fetch/api/policies/referrer-unsafe-url-worker.html fetch/api/policies/referrer-unsafe-url.html fetch/api/request/multi-globals/url-parsing.html -fetch/api/request/request-constructor-init-body-override.any.js?moli-wpt-any=dedicatedworker -fetch/api/request/request-constructor-init-body-override.any.js?moli-wpt-any=window -fetch/api/request/request-error.any.js?moli-wpt-any=dedicatedworker -fetch/api/request/request-error.any.js?moli-wpt-any=window -fetch/api/request/request-init-stream.any.js?moli-wpt-any=dedicatedworker -fetch/api/request/request-init-stream.any.js?moli-wpt-any=window fetch/api/request/url-encoding.html -fetch/api/response/json.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/json.any.js?moli-wpt-any=window fetch/api/response/many-empty-chunks-crash.html fetch/api/response/multi-globals/url-parsing.html fetch/api/response/response-body-read-task-handling.html -fetch/api/response/response-error-from-stream.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/response-error-from-stream.any.js?moli-wpt-any=window fetch/api/response/response-form-data.html -fetch/api/response/response-from-stream.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/response-from-stream.any.js?moli-wpt-any=window -fetch/api/response/response-stream-disturbed-2.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/response-stream-disturbed-2.any.js?moli-wpt-any=window -fetch/api/response/response-stream-disturbed-3.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/response-stream-disturbed-3.any.js?moli-wpt-any=window -fetch/api/response/response-stream-disturbed-4.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/response-stream-disturbed-4.any.js?moli-wpt-any=window -fetch/api/response/response-stream-disturbed-5.any.js?moli-wpt-any=dedicatedworker -fetch/api/response/response-stream-disturbed-5.any.js?moli-wpt-any=window fetch/content-length/content-length.html fetch/nosniff/importscripts.html fetch/security/dangling-markup/media.html