HOR-368 Security Avoid the problem of overwriting session data opening multiple browser tabs or multiple browser instances

up observations

active or desactive block tab
This commit is contained in:
Ronald Q
2016-03-08 18:37:38 -04:00
parent 5af732c912
commit 00885f541e
16 changed files with 177 additions and 12 deletions

View File

@@ -1847,6 +1847,7 @@ Ext.EventManager.on(window, 'beforeunload', function () {
function openWindowIfIE(pathDesigner) {
var nameTab;
if ((navigator.userAgent.indexOf("MSIE") != -1) || (navigator.userAgent.indexOf("Trident") != -1)) {
if (Ext.getCmp('newProjectWin'))
Ext.getCmp('newProjectWin').close();
@@ -1861,14 +1862,15 @@ function openWindowIfIE(pathDesigner) {
if (Ext.getCmp('changeOrKeepUidsWindow'))
Ext.getCmp('changeOrKeepUidsWindow').close();
processesGrid.store.reload();
nameTab = PM.Sessions.getCookie('PM-TabPrimary') + '_winDesigner';
if (winDesigner && winDesigner.closed === false) {
if (winDesigner.window.PMDesigner.project.isDirty()) {
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_UNSAVED_TRIGGERS_WINDOW'));
} else {
winDesigner = window.open(pathDesigner, 'winDesigner');
winDesigner = window.open(pathDesigner, nameTab);
}
} else {
winDesigner = window.open(pathDesigner, 'winDesigner');
winDesigner = window.open(pathDesigner, nameTab);
}
return;
}