From d7c75beb558947ebc595bf42e52eb2ff7995f0cf Mon Sep 17 00:00:00 2001 From: James Teh Date: Thu, 10 Apr 2025 00:41:26 +0000 Subject: [PATCH] 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 --- accessible/xpcom/xpcAccessible.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/accessible/xpcom/xpcAccessible.cpp b/accessible/xpcom/xpcAccessible.cpp index 15985e63041f..4fc9796fd946 100644 --- a/accessible/xpcom/xpcAccessible.cpp +++ b/accessible/xpcom/xpcAccessible.cpp @@ -173,13 +173,8 @@ xpcAccessible::GetId(nsAString& aID) { return NS_ERROR_FAILURE; } - RemoteAccessible* proxy = IntlGeneric()->AsRemote(); - if (!proxy) { - return NS_ERROR_FAILURE; - } - nsString id; - proxy->DOMNodeID(id); + IntlGeneric()->DOMNodeID(id); aID.Assign(id); return NS_OK;