Bug 1277722, release touch objects even if dispatching touchend fails, r=masayuki

--HG--
extra : rebase_source : 33bf5c39621a6a3e82beccfb4f9d2a41aa2880aa
This commit is contained in:
Olli Pettay 2016-07-07 15:43:23 +03:00
parent 928ee528e1
commit 4aaedb4570

View File

@ -67,14 +67,12 @@ EvictTouchPoint(RefPtr<dom::Touch>& aTouch,
event.mTouches.AppendElement(aTouch);
nsEventStatus status;
widget->DispatchEvent(&event, status);
return;
}
}
}
}
}
if (!node || !aLimitToDocument || node->OwnerDoc() == aLimitToDocument) {
// We couldn't dispatch touchend. Remove the touch from gCaptureTouchList explicitly.
TouchManager::gCaptureTouchList->Remove(aTouch->Identifier());
}
}