From 2778b482733fe4ce9171fba6db068d275e6a31e3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 17 Oct 2014 08:22:28 +0000 Subject: [PATCH] fix popup detection to cope with window.opener being a reference to itself --> should NOT be detected as popup --- phpgwapi/js/jsapi/egw_message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_message.js b/phpgwapi/js/jsapi/egw_message.js index 69c5afc59e..204e0091df 100644 --- a/phpgwapi/js/jsapi/egw_message.js +++ b/phpgwapi/js/jsapi/egw_message.js @@ -147,7 +147,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd) { var popup = false; try { - if (_wnd.opener && typeof _wnd.opener.top.egw == 'function') + if (_wnd.opener && _wnd.opener != _wnd && typeof _wnd.opener.top.egw == 'function') { popup = true; }