Enable complex FormData upload over Service Worker This CL fixes the bug uploading FormData is failed when - the Formdata is uploaded over service worker - that contains both File and Blob That's because when we pass the formdata to service worker, PopulateResourceRequestBody converts Blob to DataPipe to avoid data copy that combination FormDataBytesConsumer doesn't assume. Then this CL has DataAndDataPipeBytesConsumer reuse DataAndEncodedFileOrBlobBytesConsumer to adapt any combination. Fixed: 40790626, 40921917 Change-Id: I8fa42e2fb7b7e4c0bfd9341ed55f9c708e3276b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6182832 Commit-Queue: Yoichi Osato <yoichio@chromium.org> Reviewed-by: Nidhi Jaju <nidhijaju@chromium.org> Reviewed-by: Shunya Shishido <sisidovski@chromium.org> Cr-Commit-Position: refs/heads/main@{#1419688}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.