w3c / beacon

Beacon
https://w3c.github.io/beacon/
Other
46 stars 22 forks source link

Set the keepalive flag when extracting the body #66

Closed ricea closed 4 years ago

ricea commented 4 years ago

Setting the keepalive flag is necessary so that the fetch algorithm will throw a TypeError if a ReadableStream is passed in. See https://crbug.com/973659.

The requirement to throw is already tested by the web platform tests: https://wpt.fyi/results/beacon/beacon-readablestream.window.html.

Also rephrase the extract step to match the way it is used in the Fetch Standard.


Preview | Diff