mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Fix for PDT+ bug #18595. r=saari.
This commit is contained in:
parent
3ed534b000
commit
70ef052747
@ -126,6 +126,9 @@ nsMenuBarFrame::Init(nsIPresContext* aPresContext,
|
||||
target->AddEventListener("keydown", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
|
||||
target->AddEventListener("keyup", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
|
||||
|
||||
target->AddEventListener("mousedown", (nsIDOMMouseListener*)mMenuBarListener, PR_FALSE);
|
||||
target->AddEventListener("blur", (nsIDOMFocusListener*)mMenuBarListener, PR_TRUE);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -608,6 +611,9 @@ nsMenuBarFrame::Destroy(nsIPresContext* aPresContext)
|
||||
mTarget->RemoveEventListener("keydown", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
|
||||
mTarget->RemoveEventListener("keyup", (nsIDOMKeyListener*)mMenuBarListener, PR_FALSE);
|
||||
|
||||
mTarget->RemoveEventListener("mousedown", (nsIDOMMouseListener*)mMenuBarListener, PR_FALSE);
|
||||
mTarget->RemoveEventListener("blur", (nsIDOMFocusListener*)mMenuBarListener, PR_TRUE);
|
||||
|
||||
NS_IF_RELEASE(mMenuBarListener);
|
||||
|
||||
return nsToolbarFrame::Destroy(aPresContext);
|
||||
|
Loading…
Reference in New Issue
Block a user