From 069cf4c3ac1e07d5b576ef70ecd822bdddce2daf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 May 2021 16:35:54 +0200 Subject: [PATCH] fix security exception if opener is from a different security context eg. LTI opening in a new window --- api/js/jsapi/egw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/jsapi/egw.js b/api/js/jsapi/egw.js index b9c30e3d8f..e998b8417e 100644 --- a/api/js/jsapi/egw.js +++ b/api/js/jsapi/egw.js @@ -239,7 +239,7 @@ // Make sure opener knows when we close - start a heartbeat try { - if ((popup || window.opener && window.opener.framework) && window.name != '') { + if ((window.opener && window.opener.framework || popup) && window.name != '') { // Timeout is 5 seconds, but it iks only applied(egw_utils) when something asks for the window list window.setInterval(function () { if (window.opener && window.opener.framework && typeof window.opener.framework.popup_idx(window) == 'undefined' && !egwIsMobile()) {