Bug 952141 - Fix error when user lifts finger with no valid vc position. r=yzen

This commit is contained in:
Eitan Isaacson 2013-12-20 11:14:26 -08:00
parent a7ccc914d7
commit 90bac8d8ba

View File

@ -163,9 +163,14 @@ function forwardToChild(aMessage, aListener, aVCPosition) {
function activateCurrent(aMessage) {
Logger.debug('activateCurrent');
function activateAccessible(aAccessible) {
if (aMessage.json.activateIfKey &&
aAccessible.role != Roles.KEY) {
// Only activate keys, don't do anything on other objects.
try {
if (aMessage.json.activateIfKey &&
aAccessible.role != Roles.KEY) {
// Only activate keys, don't do anything on other objects.
return;
}
} catch (e) {
// accessible is invalid. Silently fail.
return;
}