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 72e2e7b268
commit b02622d3b5

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;