Bug 1826580 - Part 2: Remove AsyncWait cancellation in BodyStream r=nika

Differential Revision: https://phabricator.services.mozilla.com/D174779
This commit is contained in:
Kagami Sascha Rosylight 2023-04-14 11:40:43 +00:00
Родитель 18d075aa8b
Коммит 8598840e70
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -218,10 +218,6 @@ already_AddRefed<Promise> BodyStream::PullCallback(
MOZ_DIAGNOSTIC_ASSERT(mInputStream);
MOZ_DIAGNOSTIC_ASSERT(!mOriginalInputStream);
// Cancel previous wait if we were observing closure, because waiting twice
// may cause an error for some streams
mInputStream->AsyncWait(nullptr, 0, 0, nullptr);
// And then wait for data
nsresult rv = mInputStream->AsyncWait(this, 0, 0, mOwningEventTarget);
if (NS_WARN_IF(NS_FAILED(rv))) {
ErrorPropagation(aCx, stream, rv);