fix popup detection to cope with window.opener being a reference to itself --> should NOT be detected as popup

This commit is contained in:
Ralf Becker 2014-10-17 12:54:32 +00:00
parent f9e573f5cc
commit 2ceddce771

View File

@ -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;
}