← Back to release summary

SerialPort integration with WritableStream controller AbortSignal

Category
Device
Type
No developer-visible change
Status
Enabled by default (Chrome 100)
Intent stage
Shipped

Summary

This integration prevents a situation in which aborting a SerialPort's WritableStream can be blocked on waiting for a partially-written chunk of data to be written to the port. If the port is waiting for the peer device to provide a flow control signal it could be blocked indefinitely. The intent of aborting a WritableStream is to immediately stop trying to write data to the underlying sink. The introduction of an AbortSignal to the controller was done to fix bugs like this.

Standards & signals

View on chromestatus.com