mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 426208. Crash [@ nsAccUtils::IsXLink] at Firefox start. Patch by Marco Zehe. r=aaronlev, a=schrep
This commit is contained in:
parent
81c92140fd
commit
441ac61cf9
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user