mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1619458 - Don't create OSX accessibles for XUL tooltips. r=morgan
Depends on D65038 Differential Revision: https://phabricator.services.mozilla.com/D65039 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3ea5342b3a
commit
fefb04c15e
@ -28,9 +28,13 @@ AccessibleWrap::~AccessibleWrap() {}
|
||||
mozAccessible* AccessibleWrap::GetNativeObject() {
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
||||
|
||||
if (!mNativeInited && !mNativeObject && !IsDefunct() && !AncestorIsFlat()) {
|
||||
uintptr_t accWrap = reinterpret_cast<uintptr_t>(this);
|
||||
mNativeObject = [[GetNativeType() alloc] initWithAccessible:accWrap];
|
||||
if (!mNativeInited && !mNativeObject) {
|
||||
// We don't creat OSX accessibles for xul tooltips, defunct accessibles,
|
||||
// or pruned children.
|
||||
if (!IsXULTooltip() && !IsDefunct() && !AncestorIsFlat()) {
|
||||
uintptr_t accWrap = reinterpret_cast<uintptr_t>(this);
|
||||
mNativeObject = [[GetNativeType() alloc] initWithAccessible:accWrap];
|
||||
}
|
||||
}
|
||||
|
||||
mNativeInited = true;
|
||||
|
Loading…
Reference in New Issue
Block a user