bug 1243077 - support proxied accessibles in xpcAccessible::GetRole() r=davidb

This commit is contained in:
Trevor Saunders 2016-01-22 06:07:55 -05:00
parent 28bbcd69bd
commit 90b6b65702

View File

@ -204,10 +204,10 @@ xpcAccessible::GetRole(uint32_t* aRole)
NS_ENSURE_ARG_POINTER(aRole);
*aRole = nsIAccessibleRole::ROLE_NOTHING;
if (!Intl())
if (IntlGeneric().IsNull())
return NS_ERROR_FAILURE;
*aRole = Intl()->Role();
*aRole = IntlGeneric().Role();
return NS_OK;
}