fix security exception if opener is from a different security context eg. LTI opening in a new window

This commit is contained in:
Ralf Becker 2021-05-20 16:35:54 +02:00
parent 450febb623
commit 069cf4c3ac

View File

@ -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()) {