Backed out changeset 70e4ed1cfc05 (bug 1725876) for causing failures on navigating-across-documents/010.html. CLOSED TREE

This commit is contained in:
criss
2021-09-20 14:45:10 +03:00
parent 2db29e1c85
commit 6e3746d564

View File

@@ -2096,8 +2096,6 @@ XMLHttpRequestMainThread::OnStopRequest(nsIRequest* request, nsresult status) {
return NS_OK;
}
auto resetFlagSyncLooping = MakeScopeExit([&] { mFlagSyncLooping = false; });
// Send the decoder the signal that we've hit the end of the stream,
// but only when decoding text eagerly.
if (mDecoder && ((mResponseType == XMLHttpRequestResponseType::Text) ||
@@ -2218,9 +2216,6 @@ XMLHttpRequestMainThread::OnStopRequest(nsIRequest* request, nsresult status) {
}
}
// mFlagSyncLooping will be set to false below, so release this scope object.
resetFlagSyncLooping.release();
nsCOMPtr<nsIChannel> channel(do_QueryInterface(request));
NS_ENSURE_TRUE(channel, NS_ERROR_UNEXPECTED);