зеркало из https://github.com/mozilla/gecko-dev.git
Bug 952141 - Fix error when user lifts finger with no valid vc position. r=yzen
This commit is contained in:
Родитель
fce7b45cdf
Коммит
af85370b7e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче