blob: 94aa714c42280a1e89325648aba8daf9dcb18349 [file] [log] [blame]
function enableAccessibilityEventsPermission() {
return new Promise(function(resolve, reject) {
PermissionsHelper.setPermission(
'accessibility-events', 'granted').then(function() {
// Make sure AXObjectCacheImpl gets the notification too, its
// listener may fire after this one.
window.setTimeout(function() {
resolve();
}, 0);
});
});
}