From 4bc39d6fbd9a2241a96480584e32097858923e38 Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Fri, 11 Feb 2000 22:26:12 +0000 Subject: [PATCH] Fix for crashes on mousedown in chromeless windows. Hyatt says that this is a PDT+ bug, though he couldn't get me the number. r=hyatt --- layout/xul/base/src/nsMenuBarFrame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/xul/base/src/nsMenuBarFrame.cpp b/layout/xul/base/src/nsMenuBarFrame.cpp index f2d1e011f6c2..b5b862876715 100644 --- a/layout/xul/base/src/nsMenuBarFrame.cpp +++ b/layout/xul/base/src/nsMenuBarFrame.cpp @@ -597,13 +597,13 @@ nsMenuBarFrame::IsDisabled(nsIContent* aContent) NS_IMETHODIMP nsMenuBarFrame::Destroy(nsIPresContext* aPresContext) { - mTarget->RemoveEventListener("blur", (nsIDOMFocusListener*)mMenuBarListener, PR_TRUE); + mTarget->RemoveEventListener("blur", (nsIDOMFocusListener*)mMenuBarListener, PR_FALSE); - mTarget->RemoveEventListener("mousedown", (nsIDOMMouseListener*)mMenuBarListener, PR_TRUE); + mTarget->RemoveEventListener("mousedown", (nsIDOMMouseListener*)mMenuBarListener, PR_FALSE); - mTarget->RemoveEventListener("keypress", (nsIDOMKeyListener*)mMenuBarListener, PR_TRUE); - mTarget->RemoveEventListener("keydown", (nsIDOMKeyListener*)mMenuBarListener, PR_TRUE); - mTarget->RemoveEventListener("keyup", (nsIDOMKeyListener*)mMenuBarListener, PR_TRUE); + mTarget->RemoveEventListener("keypress", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE); + mTarget->RemoveEventListener("keydown", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE); + mTarget->RemoveEventListener("keyup", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE); NS_IF_RELEASE(mMenuBarListener);