Bug 1192655 - Make menubar not react to events when it is not visible. r=enn

--HG--
extra : source : 91aae6b3814b973be71cf460efd6246b68048ff4
This commit is contained in:
Xidorn Quan 2015-08-29 11:12:41 +10:00
Родитель f7a8ee4dbc
Коммит ef4e2e1473
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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);