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>
Tue, 8 Mar 2022 21:47:37 +0000 (21:47 +0000)
commit6c9ddd47409c2a40fde957e4355f903b905b178c
tree741cf48ae8e4c343ff2066a2a1463868779b7377
parent31c76493ffd63f00388ec4aa90716b1edc8ab3b0
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