mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1472629: Handle native exceptions when reading accessibility attribute values to avoid crashing. r=mstange
This commit is contained in:
parent
5d80f520f1
commit
fc76194aea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user