Bug 311053 XUL frames should respect preventDefault() [e.g. when menus are open] r=Enn sr=jst
This commit is contained in:
@@ -426,6 +426,10 @@ nsMenuFrame::HandleEvent(nsPresContext* aPresContext,
|
||||
nsEventStatus* aEventStatus)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aEventStatus);
|
||||
if (nsEventStatus_eConsumeNoDefault == *aEventStatus) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsWeakFrame weakFrame(this);
|
||||
if (*aEventStatus == nsEventStatus_eIgnore)
|
||||
*aEventStatus = nsEventStatus_eConsumeDoDefault;
|
||||
|
||||
Reference in New Issue
Block a user