зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1749633
- Return early if event target is defunct. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D140884
This commit is contained in:
Родитель
5983cacaa5
Коммит
03871406e5
|
@ -145,6 +145,11 @@ nsresult AccessibleWrap::HandleAccEvent(AccEvent* aEvent) {
|
|||
nsresult rv = LocalAccessible::HandleAccEvent(aEvent);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (IsDefunct()) {
|
||||
// The accessible can become defunct after their events are handled.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
uint32_t eventType = aEvent->GetEventType();
|
||||
|
||||
if (eventType == nsIAccessibleEvent::EVENT_SHOW) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче