From 85be457def7219066463f2c006a9e41604a84a55 Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Thu, 23 Jun 2011 15:14:43 -0400 Subject: [PATCH] Bug 666597: App Menu is triggered if a modal dialog is up [r=mbrubeck] --- mobile/chrome/content/AppMenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/chrome/content/AppMenu.js b/mobile/chrome/content/AppMenu.js index 42ff45aa86a..b8c88f666ef 100644 --- a/mobile/chrome/content/AppMenu.js +++ b/mobile/chrome/content/AppMenu.js @@ -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;