diff --git a/layout/xul/base/src/nsXULTooltipListener.cpp b/layout/xul/base/src/nsXULTooltipListener.cpp index 4a13276e999..ee557a67aa6 100644 --- a/layout/xul/base/src/nsXULTooltipListener.cpp +++ b/layout/xul/base/src/nsXULTooltipListener.cpp @@ -303,6 +303,10 @@ nsXULTooltipListener::AddTooltipSupport(nsIContent* aNode) false, false); aNode->AddSystemEventListener(NS_LITERAL_STRING("mousemove"), this, false, false); + aNode->AddSystemEventListener(NS_LITERAL_STRING("mousedown"), this, + false, false); + aNode->AddSystemEventListener(NS_LITERAL_STRING("mouseup"), this, + false, false); aNode->AddSystemEventListener(NS_LITERAL_STRING("dragstart"), this, true, false); @@ -317,6 +321,8 @@ nsXULTooltipListener::RemoveTooltipSupport(nsIContent* aNode) aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mouseout"), this, false); aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mousemove"), this, false); + aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mousedown"), this, false); + aNode->RemoveSystemEventListener(NS_LITERAL_STRING("mouseup"), this, false); aNode->RemoveSystemEventListener(NS_LITERAL_STRING("dragstart"), this, true); return NS_OK;