Bug 1735899 - Make sure RemoteLazyInputStream::Close calls mInputStreamCallback OnInp...
authorLuca Greco <lgreco@mozilla.com>
Wed, 27 Oct 2021 16:36:34 +0000 (16:36 +0000)
committerMike Hommey <glandium@debian.org>
Sat, 5 Mar 2022 22:31:23 +0000 (22:31 +0000)
commitcc67a9780a04f17dd3e25674439d38caaa2611cb
tree2cbb1248e8dcf54d61ea85125c8efbfaa6617b68
parentc9001e7a76c53c858b2b412c45cd4c204a05629b
Bug 1735899 - Make sure RemoteLazyInputStream::Close calls mInputStreamCallback OnInputStreamReady method. r=nika

RemoteLazyInputStream::Close was not setting mInputStreamCallback to a nullptr without using it in the
InputStreamCallbackRunnable::Execute, which would be calling OnInputStreamReady on the mInputStreamCallback.

This does also match the details we gathered while investigating the bug (which was triggered exactly by a remote
lazy stream getter that did never got to call OnInputStreamReady by the time we were closing the channel).

Differential Revision: https://phabricator.services.mozilla.com/D129374

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1735899-Make-sure-RemoteLazyInputStream-Close-ca.patch
dom/file/ipc/RemoteLazyInputStream.cpp