nsAutoString value; rv = aState->GetStateProperty(NS_LITERAL_STRING("value"), value); NS_ASSERTION(NS_SUCCEEDED(rv), "value restore failed!"); SetValue(value); break;
{ nsAutoString value; rv = aState->GetStateProperty(NS_LITERAL_STRING("value"), value); NS_ASSERTION(NS_SUCCEEDED(rv), "value restore failed!"); SetValue(value); break; }
nsHTMLInputElement::RestoreState(nsIPresContext* aPresContext,                                 nsIPresState* aState){  nsresult rv = NS_OK;  PRInt32 type;  GetType(&type);    switch (type) {    // Never save passwords in session history    case NS_FORM_INPUT_PASSWORD:      break;    case NS_FORM_INPUT_TEXT:    case NS_FORM_INPUT_FILE:      nsAutoString value;      rv = aState->GetStateProperty(NS_LITERAL_STRING("value"), value);      NS_ASSERTION(NS_SUCCEEDED(rv), "value restore failed!");      SetValue(value);      break;  }  return rv;}