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

This commit is contained in:
vidur%netscape.com 2000-02-11 22:26:12 +00:00
Родитель 426d1ecc67
Коммит 4bc39d6fbd
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -597,13 +597,13 @@ nsMenuBarFrame::IsDisabled(nsIContent* aContent)
NS_IMETHODIMP NS_IMETHODIMP
nsMenuBarFrame::Destroy(nsIPresContext* aPresContext) 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("keypress", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
mTarget->RemoveEventListener("keydown", (nsIDOMKeyListener*)mMenuBarListener, PR_TRUE); mTarget->RemoveEventListener("keydown", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
mTarget->RemoveEventListener("keyup", (nsIDOMKeyListener*)mMenuBarListener, PR_TRUE); mTarget->RemoveEventListener("keyup", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
NS_IF_RELEASE(mMenuBarListener); NS_IF_RELEASE(mMenuBarListener);