mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1187611 - (part 2) Handle ProxyAccessibles in mozAccessible window r=tbsaunde
This commit is contained in:
parent
942d69f034
commit
9e44300d4f
@ -1278,11 +1278,17 @@ struct RoleDescrComparator
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
|
||||
|
||||
AccessibleWrap* accWrap = [self getGeckoAccessible];
|
||||
|
||||
// Get a pointer to the native window (NSWindow) we reside in.
|
||||
NSWindow *nativeWindow = nil;
|
||||
DocAccessible* docAcc = accWrap->Document();
|
||||
DocAccessible* docAcc = nullptr;
|
||||
if (AccessibleWrap* accWrap = [self getGeckoAccessible]) {
|
||||
docAcc = accWrap->Document();
|
||||
} else if (ProxyAccessible* proxy = [self getProxyAccessible]) {
|
||||
Accessible* outerDoc = proxy->OuterDocOfRemoteBrowser();
|
||||
if (outerDoc)
|
||||
docAcc = outerDoc->Document();
|
||||
}
|
||||
|
||||
if (docAcc)
|
||||
nativeWindow = static_cast<NSWindow*>(docAcc->GetNativeWindow());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user