зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1192350 - XMLHttpRequest::Open() should check if mProxy has been already released in a nested ::Open() calls, r=khuey
This commit is contained in:
Родитель
45905aa98c
Коммит
d8e7c636ae
|
@ -1958,6 +1958,12 @@ XMLHttpRequest::Open(const nsACString& aMethod, const nsAString& aUrl,
|
|||
return;
|
||||
}
|
||||
|
||||
// We have been released in one of the nested Open() calls.
|
||||
if (!mProxy) {
|
||||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
return;
|
||||
}
|
||||
|
||||
--mProxy->mOpenCount;
|
||||
mProxy->mIsSyncXHR = !aAsync;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче