diff --git a/mod/scorm/player.js b/mod/scorm/player.js index 84be2155226..bae92d8b8ce 100644 --- a/mod/scorm/player.js +++ b/mod/scorm/player.js @@ -23,6 +23,7 @@ function scorm_openpopup(url,name,options,width,height) { options += ",width="+width+",height="+height; windowobj = window.open(url,name,options); + windowobj.opener = null; if (!windowobj) { return; } diff --git a/mod/scorm/view.js b/mod/scorm/view.js index 77e3995e8fc..085f15f12fb 100644 --- a/mod/scorm/view.js +++ b/mod/scorm/view.js @@ -83,6 +83,7 @@ M.mod_scormform.init = function(Y) { winobj = window.open(launch_url,'Popup', poptions); this.target='Popup'; scormredirect(winobj); + winobj.opener = null; } // Listen for view form submit and generate popup on user interaction. if (scormform) { @@ -91,6 +92,7 @@ M.mod_scormform.init = function(Y) { winobj = window.open(launch_url, 'Popup', poptions); this.target='Popup'; scormredirect(winobj); + winobj.opener = null; e.preventDefault(); }, scormform); }