Bug 1926541 part 1: Support RemoteAccessible in xpcAccessible::GetID. r=morgan
Accessible::DOMNodeID is unified and supported for both local and remote these days, so we can use this to support both. Differential Revision: https://phabricator.services.mozilla.com/D244707
This commit is contained in:
@@ -173,13 +173,8 @@ xpcAccessible::GetId(nsAString& aID) {
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteAccessible* proxy = IntlGeneric()->AsRemote();
|
|
||||||
if (!proxy) {
|
|
||||||
return NS_ERROR_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
nsString id;
|
nsString id;
|
||||||
proxy->DOMNodeID(id);
|
IntlGeneric()->DOMNodeID(id);
|
||||||
aID.Assign(id);
|
aID.Assign(id);
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user