Commit b2301d04 authored by Eitan Isaacson's avatar Eitan Isaacson
Browse files

Bug 1706910 - Don't expose MOXAccessible with represented view to AppKit. r=morgan, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D114797
parent 5a0ce3dc
......@@ -240,13 +240,13 @@ using namespace mozilla::a11y;
- (id)accessibilityHitTest:(NSPoint)point {
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
return [self moxHitTest:point];
return GetObjectOrRepresentedView([self moxHitTest:point]);
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
}
- (id)accessibilityFocusedUIElement {
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
return [self moxFocusedUIElement];
return GetObjectOrRepresentedView([self moxFocusedUIElement]);
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
}
......@@ -261,11 +261,11 @@ using namespace mozilla::a11y;
#pragma mark - MOXAccessible protocol
- (id)moxHitTest:(NSPoint)point {
return GetObjectOrRepresentedView(self);
return self;
}
- (id)moxFocusedUIElement {
return GetObjectOrRepresentedView(self);
return self;
}
- (void)moxPostNotification:(NSString*)notification {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment