Bug
1646642 [wpt PR 24230] - Support ServiceWorker interception for requests made from ReadableStream, a=testonly
Automatic update from web-platform-tests
Support ServiceWorker interception for requests made from ReadableStream
Before this CL blink::mojom::FetchAPIRequestBody was typemapped to
blink::EncodedFormData. This was not good for a request body made from
ReadableStream because the body is implemented as
blink::ResourceRequestBody::stream_body_ which is out of
EncodedFormData.
Hence this CL changes the type mapping. Now
blink::mojom::FetchAPIRequestBody is typemapped to
blink::ResourceRequestBody.
- encoded_form_data_mojom_traits.{cc, h} are moved to
platform/loader/fetch/fetch_api_request_body_mojom_traits.{cc, h}.
- encoded_form_data_element_mojom_traits.cc is merged into
platform/loader/fetch/fetch_api_request_body_mojom_traits.cc.
blink.mojom.FetchAPIDataElement is no longer typemapped.
- Add DataPipeBytesConsumer::CompletionNotifier::SignalSize so that
it can work with a data pipe coming from ChunkedDataPipeGetter.
- Support streaming body in FetchRequestData::Create.
Bug: 688906
Change-Id: I8c4ed0f46946aff3f59733dd2138017ead724575
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
2249205
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Yoichi Osato <yoichio@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781720}
--
wpt-commits:
388763aee0d14246a2f8ebb24176424cc1983820
wpt-pr: 24230