зеркало из https://github.com/mozilla/pjs.git
Fix bug 6258, release of null content pointer due to reentrant event
This commit is contained in:
Родитель
613a248dab
Коммит
c681d323f9
|
@ -1394,7 +1394,7 @@ nsEventStateManager::SendFocusBlur(nsIContent *aContent)
|
|||
mCurrentFocus->HandleDOMEvent(*mPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
}
|
||||
|
||||
NS_RELEASE(mCurrentTargetContent);
|
||||
NS_IF_RELEASE(mCurrentTargetContent);
|
||||
}
|
||||
|
||||
if (nsnull != aContent) {
|
||||
|
@ -1411,7 +1411,7 @@ nsEventStateManager::SendFocusBlur(nsIContent *aContent)
|
|||
aContent->HandleDOMEvent(*mPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
}
|
||||
|
||||
NS_RELEASE(mCurrentTargetContent);
|
||||
NS_IF_RELEASE(mCurrentTargetContent);
|
||||
|
||||
//reset mCurretTargetContent to what it was
|
||||
mCurrentTargetContent = targetBeforeEvent;
|
||||
|
|
|
@ -1394,7 +1394,7 @@ nsEventStateManager::SendFocusBlur(nsIContent *aContent)
|
|||
mCurrentFocus->HandleDOMEvent(*mPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
}
|
||||
|
||||
NS_RELEASE(mCurrentTargetContent);
|
||||
NS_IF_RELEASE(mCurrentTargetContent);
|
||||
}
|
||||
|
||||
if (nsnull != aContent) {
|
||||
|
@ -1411,7 +1411,7 @@ nsEventStateManager::SendFocusBlur(nsIContent *aContent)
|
|||
aContent->HandleDOMEvent(*mPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
}
|
||||
|
||||
NS_RELEASE(mCurrentTargetContent);
|
||||
NS_IF_RELEASE(mCurrentTargetContent);
|
||||
|
||||
//reset mCurretTargetContent to what it was
|
||||
mCurrentTargetContent = targetBeforeEvent;
|
||||
|
|
Загрузка…
Ссылка в новой задаче