Commit 9c28a0db authored by Alexander Surkov's avatar Alexander Surkov
Browse files

Bug 676340 - Crash [@ nsAccessible::NativeState() ] (called by...

Bug 676340 - Crash [@ nsAccessible::NativeState() ] (called by nsXULTextFieldAccessible::GetValue), r=tbsaunde
parent b4f4ed4c
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -686,6 +686,9 @@ NS_IMPL_ISUPPORTS_INHERITED3(nsXULTextFieldAccessible, nsAccessible, nsHyperText


NS_IMETHODIMP nsXULTextFieldAccessible::GetValue(nsAString& aValue)
NS_IMETHODIMP nsXULTextFieldAccessible::GetValue(nsAString& aValue)
{
{
  if (IsDefunct())
    return NS_ERROR_FAILURE;

  PRUint64 state = NativeState();
  PRUint64 state = NativeState();


  if (state & states::PROTECTED)    // Don't return password text!
  if (state & states::PROTECTED)    // Don't return password text!