From eb8fbe519bb785d817e4e40d6fe588a2b860be2a Mon Sep 17 00:00:00 2001 From: "joki%netscape.com" Date: Thu, 19 Nov 1998 00:42:38 +0000 Subject: [PATCH] Prevent multiple firings of DOM click events on buttons. git-svn-id: svn://10.0.0.236/trunk@14918 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsButtonControlFrame.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp b/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp index 931b3591761..e4b389e7234 100644 --- a/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp @@ -248,10 +248,6 @@ nsButtonControlFrame::MouseClicked(nsIPresContext* aPresContext) event.eventStructType = NS_EVENT; switch(type) { - case NS_FORM_INPUT_BUTTON: - event.message = NS_MOUSE_LEFT_CLICK; - mContent->HandleDOMEvent(*aPresContext, &event, nsnull, DOM_EVENT_INIT, status); - break; case NS_FORM_INPUT_RESET: event.message = NS_FORM_RESET; mContent->HandleDOMEvent(*aPresContext, &event, nsnull, DOM_EVENT_INIT, status);