bug 1243077 - make xpcAccessible::GetLastChild() work with proxied accessibles r=davidb

This commit is contained in:
Trevor Saunders 2016-01-22 06:53:42 -05:00
parent 16d18bf692
commit 523de36bc0

View File

@ -78,10 +78,10 @@ xpcAccessible::GetLastChild(nsIAccessible** aLastChild)
NS_ENSURE_ARG_POINTER(aLastChild);
*aLastChild = nullptr;
if (!Intl())
if (IntlGeneric().IsNull())
return NS_ERROR_FAILURE;
NS_IF_ADDREF(*aLastChild = ToXPC(Intl()->LastChild()));
NS_IF_ADDREF(*aLastChild = ToXPC(IntlGeneric().LastChild()));
return NS_OK;
}