Bug 1754913 - Intentionally ignore errors in FetchStreamReader::OnOutputStreamReader r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D138703
This commit is contained in:
Matthew Gaudet 2022-02-16 20:52:12 +00:00
Родитель 5315d8ad19
Коммит 66faca22de
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -271,7 +271,7 @@ FetchStreamReader::OnOutputStreamReady(nsIAsyncOutputStream* aStream) {
AutoEntryScript aes(mGlobal, "ReadableStreamReader.read", !mWorkerRef);
#ifdef MOZ_DOM_STREAMS
ErrorResult rv;
IgnoredErrorResult rv;
// The below very loosely tries to implement the incrementally-read-loop from
// the fetch spec: However, because of the structure of the surrounding code,
@ -292,10 +292,6 @@ FetchStreamReader::OnOutputStreamReady(nsIAsyncOutputStream* aStream) {
ReadableStreamDefaultReaderRead(aes.cx(), MOZ_KnownLive(mReader), readRequest,
rv);
// We report the (potential) JS Exception via the AutoEntryScript above, as
// was done in the JS Streams implementation as well.
rv.WouldReportJSException();
if (NS_WARN_IF(rv.Failed())) {
// Let's close the stream.
CloseAndRelease(aes.cx(), NS_ERROR_DOM_INVALID_STATE_ERR);