Bug 797961 - Fix disappearing node case. r=davidb

This commit is contained in:
Eitan Isaacson 2012-10-08 00:06:38 -07:00
parent 621675f4fa
commit 1c61f5173f

View File

@ -46,7 +46,9 @@ function virtualCursorControl(aMessage) {
moved = vc[details.action](rule);
}
} catch (x) {
moved = vc.moveNext(rule, content.document.activeElement, true);
let acc = Utils.AccRetrieval.
getAccessibleFor(content.document.activeElement);
moved = vc.moveNext(rule, acc, true);
}
break;
case 'moveToPoint':
@ -88,7 +90,7 @@ function forwardMessage(aVirtualCursor, aMessage) {
return true;
}
} catch (x) {
Logger.error(x);
// Frame may be hidden, we regard this case as false.
}
return false;
}