mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
Bug 666597: App Menu is triggered if a modal dialog is up [r=mbrubeck]
This commit is contained in:
parent
72e2e7b268
commit
b02622d3b5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user