Bug 666597: App Menu is triggered if a modal dialog is up [r=mbrubeck]

This commit is contained in:
Mark Finkle 2011-06-23 15:14:43 -04:00
parent 4a3fbbce0d
commit 437594e520

View File

@ -11,7 +11,8 @@ var AppMenu = {
overflowMenu : [],
show: function show() {
if (BrowserUI.activePanel || BrowserUI.isPanelVisible())
let modals = document.getElementsByClassName("modal-block").length;
if (BrowserUI.activePanel || BrowserUI.isPanelVisible() || modals > 0 || BrowserUI.activeDialog)
return;
let shown = 0;