mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1594147 - prevent possible null dereference in MaybeDispatchPrematureAbortEvents, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D52409 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
e34d04af1f
commit
d49c1bb5ec
@ -1529,6 +1529,12 @@ void XMLHttpRequestWorker::MaybeDispatchPrematureAbortEvents(ErrorResult& aRv) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Similarly to null check in ::Open, mProxy may have been cleared here.
|
||||
if (!mProxy) {
|
||||
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
return;
|
||||
}
|
||||
|
||||
mProxy->mSeenUploadLoadStart = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user