Fix for bug #26381
git-svn-id: svn://10.0.0.236/trunk@60223 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
126b0e8e2b
commit
5fd1359b9c
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user