Bug 1192350 - XMLHttpRequest::Open() should check if mProxy has been already released in a nested ::Open() calls, r=khuey

This commit is contained in:
Andrea Marchesini 2015-08-19 18:26:13 +01:00
Родитель 45905aa98c
Коммит d8e7c636ae
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -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;
}