Bug 1472629: Handle native exceptions when reading accessibility attribute values to avoid crashing. r=mstange

This commit is contained in:
Stephen A Pohl 2018-07-19 14:39:52 -04:00
parent 5d80f520f1
commit fc76194aea

View File

@ -3454,6 +3454,8 @@ static const NSString* kStateCollectionBehavior = @"collectionBehavior";
- (id)accessibilityAttributeValue:(NSString *)attribute
{
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
id retval = [super accessibilityAttributeValue:attribute];
// The following works around a problem with Text-to-Speech on OS X 10.7.
@ -3497,6 +3499,8 @@ static const NSString* kStateCollectionBehavior = @"collectionBehavior";
}
return retval;
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
}
@end