What is the issue with the Compression Standard?
https://compression.spec.whatwg.org/#decompress-and-enqueue-a-chunk
- If buffer is empty, return.
And then:
- If the end of the compressed input has been reached, and ds’s context has not fully consumed chunk, then throw a TypeError.
But this algorithm is called after the stream end is reached, step 3 would end the algorithm without throwing an error, making things invalid.
We missed this as Firefox has skipped step 3, as an empty buffer would void step 4 and 5 anyway.