Bug 649604 - crash [@ nsAccessible::NativeState()], r=marcoz, surkov

This commit is contained in:
Trevor Saunders 2011-04-14 20:49:38 +09:00
parent 60f7fa10ab
commit b3553b389c

View File

@ -422,6 +422,9 @@ nsHTMLTextFieldAccessible::GetNameInternal(nsAString& aName)
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetValue(nsAString& _retval)
{
if (IsDefunct())
return NS_ERROR_FAILURE;
if (NativeState() & states::PROTECTED) // Don't return password text!
return NS_ERROR_FAILURE;