nsMouseEvent event(NS_MOUSE_LEFT_CLICK);
nsHTMLButtonElement::Click(){  if (mHandlingClick)    return NS_OK;  mHandlingClick = PR_TRUE;  // Hold on to the document in case one of the events makes it die or  // something...  nsCOMPtr<nsIDocument> doc = GetCurrentDoc();  if (doc) {    nsIPresShell *shell = doc->GetShellAt(0);    if (shell) {      nsCOMPtr<nsPresContext> context = shell->GetPresContext();      if (context) {        nsEventStatus status = nsEventStatus_eIgnore;        nsMouseEvent event(NS_MOUSE_LEFT_CLICK);        HandleDOMEvent(context, &event, nsnull,                       NS_EVENT_FLAG_INIT, &status);      }    }  }  mHandlingClick = PR_FALSE;  return NS_OK;}