mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1215657 - make AccessibleWrap::get_accDefaultAction work with proxied accessibles r=davidb
This commit is contained in:
parent
925b10e817
commit
2ab1fd5ca1
@ -867,12 +867,13 @@ AccessibleWrap::get_accDefaultAction(
|
||||
if (xpAccessible->IsDefunct())
|
||||
return CO_E_OBJNOTCONNECTED;
|
||||
|
||||
// TODO make this work with proxies.
|
||||
if (xpAccessible->IsProxy())
|
||||
return E_NOTIMPL;
|
||||
|
||||
nsAutoString defaultAction;
|
||||
if (xpAccessible->IsProxy()) {
|
||||
xpAccessible->Proxy()->ActionNameAt(0, defaultAction);
|
||||
} else {
|
||||
xpAccessible->ActionNameAt(0, defaultAction);
|
||||
}
|
||||
|
||||
*pszDefaultAction = ::SysAllocStringLen(defaultAction.get(),
|
||||
defaultAction.Length());
|
||||
return *pszDefaultAction ? S_OK : E_OUTOFMEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user