Backed out changeset 70e4ed1cfc05 (bug 1725876) for causing failures on navigating-across-documents/010.html. CLOSED TREE
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user