зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1648515 r=baku
Differential Revision: https://phabricator.services.mozilla.com/D83513
This commit is contained in:
Родитель
311ebc3f7d
Коммит
6c706754b3
|
@ -884,6 +884,10 @@ void FetchDriver::FailWithNetworkError(nsresult rv) {
|
|||
#ifdef DEBUG
|
||||
mResponseAvailableCalled = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
// mObserver could be null after OnResponseAvailable().
|
||||
if (mObserver) {
|
||||
mObserver->OnResponseEnd(FetchDriverObserver::eByNetworking);
|
||||
mObserver = nullptr;
|
||||
}
|
||||
|
@ -1402,7 +1406,9 @@ void FetchDriver::FinishOnStopRequest(
|
|||
mResponseAvailableCalled = true;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
if (mObserver) {
|
||||
mObserver->OnResponseEnd(FetchDriverObserver::eByNetworking);
|
||||
mObserver = nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче