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 2756d3cc25
commit 316224a8fa

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