зеркало из https://github.com/mozilla/gecko-dev.git
Bug 706784 - Firefox 8.0.1 Crash Report [@ nsLinkableAccessible::GetValue(nsAString_internal&) ], r=marcoz
This commit is contained in:
Родитель
0df5edb374
Коммит
af2c5b6a31
|
@ -312,22 +312,25 @@ STDMETHODIMP nsAccessibleWrap::get_accValue(
|
||||||
{
|
{
|
||||||
__try {
|
__try {
|
||||||
*pszValue = NULL;
|
*pszValue = NULL;
|
||||||
|
|
||||||
nsAccessible* xpAccessible = GetXPAccessibleFor(varChild);
|
nsAccessible* xpAccessible = GetXPAccessibleFor(varChild);
|
||||||
if (xpAccessible) {
|
if (!xpAccessible || xpAccessible->IsDefunct())
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
nsAutoString value;
|
nsAutoString value;
|
||||||
if (NS_FAILED(xpAccessible->GetValue(value)))
|
if (NS_FAILED(xpAccessible->GetValue(value)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
// see bug 438784: Need to expose URL on doc's value attribute.
|
// See bug 438784: need to expose URL on doc's value attribute. For this,
|
||||||
// For this, reverting part of fix for bug 425693 to make this MSAA method
|
// reverting part of fix for bug 425693 to make this MSAA method behave
|
||||||
// behave IAccessible2-style.
|
// IAccessible2-style.
|
||||||
if (value.IsEmpty())
|
if (value.IsEmpty())
|
||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
|
|
||||||
*pszValue = ::SysAllocStringLen(value.get(), value.Length());
|
*pszValue = ::SysAllocStringLen(value.get(), value.Length());
|
||||||
if (!*pszValue)
|
if (!*pszValue)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
}
|
|
||||||
} __except(FilterA11yExceptions(::GetExceptionCode(), GetExceptionInformation())) { }
|
} __except(FilterA11yExceptions(::GetExceptionCode(), GetExceptionInformation())) { }
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче