Add noreferrer noopener to window.open calls
issue9089
This commit is contained in:
1 parent
bdad20516f
commit
c5790f031f
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -133,7 +133,7 @@
|
||||
Sao.Action.exec_report(params);
|
||||
return;
|
||||
case 'ir.action.url':
|
||||
window.open(action.url, '_blank');
|
||||
window.open(action.url, '_blank', 'noreferrer,noopener');
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -530,7 +530,7 @@ var Sao = {};
|
||||
return;
|
||||
}
|
||||
if (url) {
|
||||
window.open(url, '_blank');
|
||||
window.open(url, '_blank', 'noreferrer,noopener');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4037,7 +4037,7 @@ function eval_pyson(value){
|
||||
});
|
||||
Sao.common.selection(Sao.i18n.gettext("Choose a language"), options)
|
||||
.done(function(language) {
|
||||
window.open(this.uri(language), '_blank');
|
||||
window.open(this.uri(language), '_blank', 'noreferrer,noopener');
|
||||
}.bind(this));
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user