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:
James Teh
2025-04-10 00:41:26 +00:00
parent 5d00fa55a9
commit d7c75beb55

View File

@@ -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;