зеркало из https://github.com/mozilla/gecko-dev.git
Bug 333294. UMR in nsAccessible::GetXULName(), found by coverity, fixed by Mike Gao. r=aaronlev, sr=roc
This commit is contained in:
Родитель
d6a103f39d
Коммит
cfe5cab730
|
@ -1557,7 +1557,7 @@ nsresult nsAccessible::GetXULName(nsAString& aLabel, PRBool aCanAggregateSubtree
|
||||||
|
|
||||||
// First check for label override via accessibility labelledby relationship
|
// First check for label override via accessibility labelledby relationship
|
||||||
nsAutoString label;
|
nsAutoString label;
|
||||||
nsresult rv;
|
nsresult rv = NS_OK;
|
||||||
if (content->HasAttr(kNameSpaceID_XHTML2_Unofficial,
|
if (content->HasAttr(kNameSpaceID_XHTML2_Unofficial,
|
||||||
nsAccessibilityAtoms::role)) {
|
nsAccessibilityAtoms::role)) {
|
||||||
rv = GetTextFromRelationID(nsAccessibilityAtoms::labelledby, label);
|
rv = GetTextFromRelationID(nsAccessibilityAtoms::labelledby, label);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче