diff --git a/accessible/src/base/nsOuterDocAccessible.cpp b/accessible/src/base/nsOuterDocAccessible.cpp index 78ef401e060..705f7c0ac87 100644 --- a/accessible/src/base/nsOuterDocAccessible.cpp +++ b/accessible/src/base/nsOuterDocAccessible.cpp @@ -54,8 +54,10 @@ nsOuterDocAccessible::nsOuterDocAccessible(nsIDOMNode* aNode, /* attribute wstring accName; */ NS_IMETHODIMP nsOuterDocAccessible::GetName(nsAString& aName) -{ - nsCOMPtr accDoc(do_QueryInterface(mFirstChild)); +{ + nsCOMPtr accessible; + GetFirstChild(getter_AddRefs(accessible)); + nsCOMPtr accDoc(do_QueryInterface(accessible)); if (!accDoc) { return NS_ERROR_FAILURE; } diff --git a/accessible/src/xul/nsXULTabAccessible.cpp b/accessible/src/xul/nsXULTabAccessible.cpp index ccd23ea49f0..75acd0c3601 100644 --- a/accessible/src/xul/nsXULTabAccessible.cpp +++ b/accessible/src/xul/nsXULTabAccessible.cpp @@ -214,9 +214,10 @@ NS_IMETHODIMP nsXULTabPanelsAccessible::GetRole(PRUint32 *aRole) * the panel. XXX not sure if the "panels" object should have the * same name. */ -NS_IMETHODIMP nsXULTabPanelsAccessible::GetName(nsAString& _retval) +NS_IMETHODIMP nsXULTabPanelsAccessible::GetName(nsAString& aName) { - return NS_ERROR_NOT_IMPLEMENTED; + aName.Truncate(); + return NS_OK; } /**