Bug 426208. Crash [@ nsAccUtils::IsXLink] at Firefox start. Patch by Marco Zehe. r=aaronlev, a=schrep

This commit is contained in:
aaronleventhal@moonset.net 2008-03-31 19:50:00 -07:00
parent 81c92140fd
commit 441ac61cf9
2 changed files with 5 additions and 0 deletions

View File

@ -725,6 +725,9 @@ nsAccUtils::GetID(nsIContent *aContent, nsAString& aID)
PRBool
nsAccUtils::IsXLink(nsIContent *aContent)
{
if (!aContent)
return PR_FALSE;
return aContent->AttrValueIs(kNameSpaceID_XLink, nsAccessibilityAtoms::type,
nsAccessibilityAtoms::simple, eCaseMatters) &&
aContent->HasAttr(kNameSpaceID_XLink, nsAccessibilityAtoms::href);

View File

@ -2471,6 +2471,8 @@ nsAccessible::GetValue(nsAString& aValue)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
if (!content)
return NS_OK;
if (mRoleMapEntry) {
if (mRoleMapEntry->valueRule == eNoValue) {