diff --git a/lib/browser/api/net.ts b/lib/browser/api/net.ts index 8c19fb7ada..a50348ac40 100644 --- a/lib/browser/api/net.ts +++ b/lib/browser/api/net.ts @@ -188,6 +188,11 @@ class ChunkedBodyStream extends Writable { this._downstream = pipe; if (this._pendingChunk) { const doneWriting = (maybeError: Error | void) => { + // If the underlying request has been aborted, we honeslty don't care about the error + // all work should cease as soon as we abort anyway, this error is probably a + // "mojo pipe disconnected" error (code=9) + if (this._clientRequest._aborted) return; + const cb = this._pendingCallback!; delete this._pendingCallback; delete this._pendingChunk;