From 5fd1359b9c6db0d7ee2b513f7e512decfdc8f66e Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 9 Feb 2000 09:39:15 +0000 Subject: [PATCH] Fix for bug #26381 git-svn-id: svn://10.0.0.236/trunk@60223 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xbl/src/nsXBLEventHandler.cpp | 4 ++++ mozilla/layout/xbl/src/nsXBLEventHandler.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mozilla/content/xbl/src/nsXBLEventHandler.cpp b/mozilla/content/xbl/src/nsXBLEventHandler.cpp index f83fed68206..b5f4bc479ac 100644 --- a/mozilla/content/xbl/src/nsXBLEventHandler.cpp +++ b/mozilla/content/xbl/src/nsXBLEventHandler.cpp @@ -307,6 +307,10 @@ nsXBLEventHandler::MouseEventMatched(nsIDOMUIEvent* aMouseEvent) NS_IMETHODIMP nsXBLEventHandler::ExecuteHandler(const nsString& aEventName, nsIDOMEvent* aEvent) { + // We are the default action for this command. + // Stop any other default action from executing. + aEvent->PreventDefault(); + // This is a special-case optimization to make command handling fast. // It isn't really a part of XBL, but it helps speed things up. nsAutoString command; diff --git a/mozilla/layout/xbl/src/nsXBLEventHandler.cpp b/mozilla/layout/xbl/src/nsXBLEventHandler.cpp index f83fed68206..b5f4bc479ac 100644 --- a/mozilla/layout/xbl/src/nsXBLEventHandler.cpp +++ b/mozilla/layout/xbl/src/nsXBLEventHandler.cpp @@ -307,6 +307,10 @@ nsXBLEventHandler::MouseEventMatched(nsIDOMUIEvent* aMouseEvent) NS_IMETHODIMP nsXBLEventHandler::ExecuteHandler(const nsString& aEventName, nsIDOMEvent* aEvent) { + // We are the default action for this command. + // Stop any other default action from executing. + aEvent->PreventDefault(); + // This is a special-case optimization to make command handling fast. // It isn't really a part of XBL, but it helps speed things up. nsAutoString command;