зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1192655 - Make menubar not react to events when it is not visible. r=enn
--HG-- extra : source : 91aae6b3814b973be71cf460efd6246b68048ff4
This commit is contained in:
Родитель
f7a8ee4dbc
Коммит
ef4e2e1473
|
@ -408,6 +408,11 @@ nsMenuBarListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
|||
nsresult
|
||||
nsMenuBarListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
{
|
||||
// If the menu bar is collapsed, don't do anything.
|
||||
if (!mMenuBarFrame->StyleVisibility()->IsVisible()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsAutoString eventType;
|
||||
aEvent->GetType(eventType);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче